summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorstephen hemminger2017-07-19 20:53:19 +0200
committerDavid S. Miller2017-07-20 07:20:05 +0200
commit3962981f4822aaf284234efd0500041417faea86 (patch)
tree6a381394e3fc59e48bd531f3afd1ebb8f34d47a5 /drivers/net/hyperv/hyperv_net.h
parentnetvsc: save pointer to parent netvsc_device in channel table (diff)
downloadkernel-qcow2-linux-3962981f4822aaf284234efd0500041417faea86.tar.gz
kernel-qcow2-linux-3962981f4822aaf284234efd0500041417faea86.tar.xz
kernel-qcow2-linux-3962981f4822aaf284234efd0500041417faea86.zip
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.h6
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;