summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-25 21:02:07 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-27 11:37:31 -0700
commit1c31720a74e19bb57f301350a3b03210fa2ba9e3 (patch)
tree053f29ffa53383eb003ac632971f31e1643ef1d9 /include/net
parentc1b60092cf307fef12f793abf7cf8167e26a6ccf (diff)
downloadop-kernel-dev-1c31720a74e19bb57f301350a3b03210fa2ba9e3.zip
op-kernel-dev-1c31720a74e19bb57f301350a3b03210fa2ba9e3.tar.gz
ipv4: add __rcu annotations to routes.c
Add __rcu annotations to : (struct dst_entry)->rt_next (struct rt_hash_bucket)->chain And use appropriate rcu primitives to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index a217c83..ffe9cb7 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -95,7 +95,7 @@ struct dst_entry {
unsigned long lastuse;
union {
struct dst_entry *next;
- struct rtable *rt_next;
+ struct rtable __rcu *rt_next;
struct rt6_info *rt6_next;
struct dn_route *dn_next;
};
OpenPOWER on IntegriCloud