summaryrefslogtreecommitdiff
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-09-24 10:25:40 -0700
committerDavid S. Miller <davem@davemloft.net>2013-09-30 14:22:59 -0400
commit559835ea7292e2f09304d81eda16f4209433245e (patch)
tree516a56d352969181deffa05466c7a0cfd0e15dc1 /include/net/ip.h
parent9a3bab6b05383f1e4c3716b3615500c51285959e (diff)
vxlan: Use RCU apis to access sk_user_data.
Use of RCU api makes vxlan code easier to understand. It also fixes bug due to missing ACCESS_ONCE() on sk_user_data dereference. In rare case without ACCESS_ONCE() compiler might omit vs on sk_user_data dereference. Compiler can use vs as alias for sk->sk_user_data, resulting in multiple sk_user_data dereference in rcu read context which could change. CC: Jesse Gross <jesse@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
0 files changed, 0 insertions, 0 deletions