Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82827
b: refs/heads/master
c: a48bd8f
h: refs/heads/master
i:
  82825: fe8e3dc
  82823: bc81474
v: v3
  • Loading branch information
Rusty Russell committed Feb 4, 2008
1 parent d4e512b commit b648fa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e70f2f1bb8c8cf08ba0d836466f77eea27dd3474
refs/heads/master: a48bd8f67003c342e147309a331f656a5e75a5e4
7 changes: 7 additions & 0 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@ static int virtnet_open(struct net_device *dev)
struct virtnet_info *vi = netdev_priv(dev);

napi_enable(&vi->napi);

/* If all buffers were filled by other side before we napi_enabled, we
* won't get another interrupt, so process any outstanding packets
* now. virtnet_poll wants re-enable the queue, so we disable here. */
vi->rvq->vq_ops->disable_cb(vi->rvq);
netif_rx_schedule(vi->dev, &vi->napi);

return 0;
}

Expand Down

0 comments on commit b648fa1

Please sign in to comment.