summaryrefslogtreecommitdiff
path: root/datapath/tunnel.h
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-12-04 11:50:53 -0800
committerJesse Gross <jesse@nicira.com>2010-12-13 13:40:13 -0800
commite1040c772fbebc3abe9e7222f9c540112c4dca81 (patch)
treed5e014048d1656b1843599f2e62afc8b9b13920a /datapath/tunnel.h
parentd3097efff7c612e25cbbcf4913c703a73b57e523 (diff)
downloadopenvswitch-e1040c772fbebc3abe9e7222f9c540112c4dca81.tar.gz
datapath: Add usage of __rcu annotation.
Sparse can warn about incorrect usage of RCU via direct access to points when used in conjuction with __rcu and CONFIG_SPARSE_RCU. This adds the necessary annotations. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath/tunnel.h')
-rw-r--r--datapath/tunnel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath/tunnel.h b/datapath/tunnel.h
index 5615f6ada..aa859f6e4 100644
--- a/datapath/tunnel.h
+++ b/datapath/tunnel.h
@@ -161,7 +161,7 @@ struct tnl_vport {
char name[IFNAMSIZ];
const struct tnl_ops *tnl_ops;
- struct tnl_mutable_config *mutable; /* Protected by RCU. */
+ struct tnl_mutable_config __rcu *mutable;
/*
* ID of last fragment sent (for tunnel protocols with direct support
@@ -171,7 +171,7 @@ struct tnl_vport {
atomic_t frag_id;
spinlock_t cache_lock;
- struct tnl_cache *cache; /* Protected by RCU/cache_lock. */
+ struct tnl_cache __rcu *cache; /* Protected by RCU/cache_lock. */
#ifdef NEED_CACHE_TIMEOUT
/*