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>
这个提交包含在:
@@ -1548,6 +1548,7 @@ static int netvsc_probe(struct hv_device *dev,
|
||||
|
||||
netif_set_real_num_tx_queues(net, nvdev->num_chn);
|
||||
netif_set_real_num_rx_queues(net, nvdev->num_chn);
|
||||
rtnl_unlock();
|
||||
|
||||
netdev_lockdep_set_classes(net);
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户