mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 21:46:31 +00:00
hv_netvsc: only wake transmit queue if link is up
Don't wake transmit queues if link is not up yet. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
12f69661a4
commit
f4950e4586
@ -91,12 +91,11 @@ static int netvsc_open(struct net_device *net)
|
||||
return ret;
|
||||
}
|
||||
|
||||
netif_tx_wake_all_queues(net);
|
||||
|
||||
rdev = nvdev->extension;
|
||||
|
||||
if (!rdev->link_state)
|
||||
if (!rdev->link_state) {
|
||||
netif_carrier_on(net);
|
||||
netif_tx_wake_all_queues(net);
|
||||
}
|
||||
|
||||
if (vf_netdev) {
|
||||
/* Setting synthetic device up transparently sets
|
||||
|
Loading…
Reference in New Issue
Block a user