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:

committed by
David S. Miller

parent
35fbbccfb4
commit
3962981f48
@@ -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;
|
||||
|
Reference in New Issue
Block a user