summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-09-22 23:56:33 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-09-23 12:39:49 (GMT)
commitf207c10d982388fa42710922ad1c0c9d3ba9a87b (patch)
tree0961c5920a02cb9e1a621b2a46134d156fa4efe9 /drivers/net/hyperv/hyperv_net.h
parente8ff40d4bff1f3b6a588e29ed1fbdfd943642856 (diff)
downloadlinux-f207c10d982388fa42710922ad1c0c9d3ba9a87b.tar.xz
hv_netvsc: use RCU to protect vf_netdev
The vf_netdev pointer in the netvsc device context can simply be protected by RCU because network device destruction is already RCU synchronized. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 284b97b..6b79487 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -695,7 +695,7 @@ struct net_device_context {
bool start_remove;
/* State to manage the associated VF interface. */
- struct net_device *vf_netdev;
+ struct net_device __rcu *vf_netdev;
bool vf_inject;
atomic_t vf_use_cnt;
/* 1: allocated, serial number is valid. 0: not allocated */