aboutsummaryrefslogtreecommitdiff
path: root/datapath/flow.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/flow.h
parentd3097efff7c612e25cbbcf4913c703a73b57e523 (diff)
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/flow.h')
-rw-r--r--datapath/flow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/flow.h b/datapath/flow.h
index 61ffcd75..07644827 100644
--- a/datapath/flow.h
+++ b/datapath/flow.h
@@ -34,7 +34,7 @@ struct sw_flow {
struct tbl_node tbl_node;
struct odp_flow_key key;
- struct sw_flow_actions *sf_acts;
+ struct sw_flow_actions __rcu *sf_acts;
atomic_t refcnt;
bool dead;