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>
This commit is contained in:
stephen hemminger
2017-07-19 11:53:19 -07:00
committed by David S. Miller
parent 35fbbccfb4
commit 3962981f48
4 changed files with 15 additions and 10 deletions

View File

@@ -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;