提交 f4950e45 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

hv_netvsc: only wake transmit queue if link is up

Don't wake transmit queues if link is not up yet.
Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 12f69661
...@@ -91,12 +91,11 @@ static int netvsc_open(struct net_device *net) ...@@ -91,12 +91,11 @@ static int netvsc_open(struct net_device *net)
return ret; return ret;
} }
netif_tx_wake_all_queues(net);
rdev = nvdev->extension; rdev = nvdev->extension;
if (!rdev->link_state) {
if (!rdev->link_state)
netif_carrier_on(net); netif_carrier_on(net);
netif_tx_wake_all_queues(net);
}
if (vf_netdev) { if (vf_netdev) {
/* Setting synthetic device up transparently sets /* Setting synthetic device up transparently sets
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册