arp: Move sCacheLock to be near the structure it's protecting.
No functional change intended.
This commit is contained in:
@@ -120,7 +120,6 @@ static void arp_timer(struct net_timer *timer, void *data);
|
|||||||
net_buffer_module_info* gBufferModule;
|
net_buffer_module_info* gBufferModule;
|
||||||
static net_stack_module_info* sStackModule;
|
static net_stack_module_info* sStackModule;
|
||||||
static net_datalink_module_info* sDatalinkModule;
|
static net_datalink_module_info* sDatalinkModule;
|
||||||
static mutex sCacheLock;
|
|
||||||
static bool sIgnoreReplies;
|
static bool sIgnoreReplies;
|
||||||
|
|
||||||
|
|
||||||
@@ -152,6 +151,7 @@ struct arpHash {
|
|||||||
|
|
||||||
typedef BOpenHashTable<arpHash> AddressCache;
|
typedef BOpenHashTable<arpHash> AddressCache;
|
||||||
static AddressCache* sCache;
|
static AddressCache* sCache;
|
||||||
|
static mutex sCacheLock;
|
||||||
|
|
||||||
|
|
||||||
#ifdef TRACE_ARP
|
#ifdef TRACE_ARP
|
||||||
|
|||||||
Reference in New Issue
Block a user