diff options
author | Stephen Hemminger <sthemmin@microsoft.com> | 2016-09-22 16:56:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-23 08:39:49 -0400 |
commit | 9cbcc4280645f0e7e19e6a0da443ec7e69cecf40 (patch) | |
tree | 9853d5d2e8fec8108df235c5bacf8ee67e4044ea /drivers/net/hyperv/hyperv_net.h | |
parent | f207c10d982388fa42710922ad1c0c9d3ba9a87b (diff) | |
download | lwn-9cbcc4280645f0e7e19e6a0da443ec7e69cecf40.tar.gz lwn-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 */ |