summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2004-11-02 23:42:09 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-11-02 23:42:09 -0800
commitbfa840301c9c5cbe04a1a2556d3096c93c9bc9fd (patch)
tree9c197a1282ea758ee09a9f8a5797779caec60222 /include
parentc888100b7ec188b20b05e8ab7f0f638999092e5d (diff)
[NET]: Neighbour table entries counter needs to be atomic_t
It is updated outside of locks, so... Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/neighbour.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index f6c323a3e5b6..4c9ddae8c866 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -189,7 +189,7 @@ struct neigh_table
struct timer_list gc_timer;
struct timer_list proxy_timer;
struct sk_buff_head proxy_queue;
- int entries;
+ atomic_t entries;
rwlock_t lock;
unsigned long last_rand;
struct neigh_parms *parms_list;