Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287479
b: refs/heads/master
c: 0a28253
h: refs/heads/master
i:
  287477: 24ae2dc
  287475: e2d72b1
  287471: 3ebbb00
v: v3
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Feb 2, 2012
1 parent bb97a89 commit 6eb1927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb0a178c787d2bdf787d56e364becdb0eb4b4fab
refs/heads/master: 0a282538cc1977655004cdb2eb25dd2b63f20637
8 changes: 4 additions & 4 deletions trunk/drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int netvsc_close(struct net_device *net)
struct hv_device *device_obj = net_device_ctx->device_ctx;
int ret;

netif_stop_queue(net);
netif_tx_disable(net);

ret = rndis_filter_close(device_obj);
if (ret != 0)
Expand Down Expand Up @@ -256,7 +256,7 @@ void netvsc_linkstatus_callback(struct hv_device *device_obj,
schedule_delayed_work(&ndev_ctx->dwork, msecs_to_jiffies(20));
} else {
netif_carrier_off(net);
netif_stop_queue(net);
netif_tx_disable(net);
}
}

Expand Down Expand Up @@ -337,7 +337,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu)

nvdev->start_remove = true;
cancel_delayed_work_sync(&ndevctx->dwork);
netif_stop_queue(ndev);
netif_tx_disable(ndev);
rndis_filter_device_remove(hdev);

ndev->mtu = mtu;
Expand Down Expand Up @@ -460,7 +460,7 @@ static int netvsc_remove(struct hv_device *dev)
cancel_delayed_work_sync(&ndev_ctx->dwork);

/* Stop outbound asap */
netif_stop_queue(net);
netif_tx_disable(net);

unregister_netdev(net);

Expand Down

0 comments on commit 6eb1927

Please sign in to comment.