diff options
author | 2016-09-22 16:56:34 -0700 | |
---|---|---|
committer | 2016-09-23 08:39:49 -0400 | |
commit | 9cbcc4280645f0e7e19e6a0da443ec7e69cecf40 (patch) | |
tree | 9853d5d2e8fec8108df235c5bacf8ee67e4044ea /drivers/net/hyperv/hyperv_net.h | |
parent | hv_netvsc: use RCU to protect vf_netdev (diff) | |
download | linux-9cbcc4280645f0e7e19e6a0da443ec7e69cecf40.tar.gz linux-9cbcc4280645f0e7e19e6a0da443ec7e69cecf40.tar.bz2 linux-9cbcc4280645f0e7e19e6a0da443ec7e69cecf40.zip |
hv_netvsc: remove VF in flight counters
Since VF reference is now protected by RCU, no longer need the VF usage
counter and can use device flags to see whether to inject or not.
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 6b7948764443..1d4974026eff 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -696,8 +696,7 @@ struct net_device_context { /* State to manage the associated VF interface. */ struct net_device __rcu *vf_netdev; - bool vf_inject; - atomic_t vf_use_cnt; + /* 1: allocated, serial number is valid. 0: not allocated */ u32 vf_alloc; /* Serial number of the VF to team with */ |