Skip to content

Commit

Permalink
hv_netvsc: only wake transmit queue if link is up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 5, 2018
1 parent 12f6966 commit f4950e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4950e4

Please sign in to comment.