diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-07-19 11:53:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-19 22:20:05 -0700 |
commit | 3962981f4822aaf284234efd0500041417faea86 (patch) | |
tree | 6a381394e3fc59e48bd531f3afd1ebb8f34d47a5 /drivers/net/hyperv/hyperv_net.h | |
parent | 35fbbccfb417385c1c8cc6f799154ea1ebdc22ef (diff) | |
download | linux-3962981f4822aaf284234efd0500041417faea86.tar.bz2 |
netvsc: add rtnl annotations in rndis
The rndis functions are used when changing device state.
Therefore the references from network device to internal state
are protected by RTNL mutex.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index d13572879e7e..afb65f753574 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -787,12 +787,6 @@ struct netvsc_device { struct rcu_head rcu; }; -static inline struct netvsc_device * -net_device_to_netvsc_device(struct net_device *ndev) -{ - return ((struct net_device_context *)netdev_priv(ndev))->nvdev; -} - /* NdisInitialize message */ struct rndis_initialize_request { u32 req_id; |