aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-06-06 23:12:08 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-08 00:25:21 -0400
commit66018506e15bea62de4eefc3298f170b4bfcf5ef (patch)
treed2dbf5c06e317b85f75b946a1b63ed0917d0382a /include/net/ip.h
parent8b37ef0a1f6c2401fea3536facfa21191936bd6c (diff)
ip: Router Alert RCU conversion
Straightforward conversion to RCU. One rwlock becomes a spinlock, and is static. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
-rw-r--r--include/net/ip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 452f229c380a..9982c97f0bdc 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -62,10 +62,10 @@ struct ip_ra_chain {
62 struct ip_ra_chain *next; 62 struct ip_ra_chain *next;
63 struct sock *sk; 63 struct sock *sk;
64 void (*destructor)(struct sock *); 64 void (*destructor)(struct sock *);
65 struct rcu_head rcu;
65}; 66};
66 67
67extern struct ip_ra_chain *ip_ra_chain; 68extern struct ip_ra_chain *ip_ra_chain;
68extern rwlock_t ip_ra_lock;
69 69
70/* IP flags. */ 70/* IP flags. */
71#define IP_CE 0x8000 /* Flag: "Congestion" */ 71#define IP_CE 0x8000 /* Flag: "Congestion" */