Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83667
b: refs/heads/master
c: 370076d
h: refs/heads/master
i:
  83665: 8990bdc
  83663: 15233b0
v: v3
  • Loading branch information
Christian Borntraeger authored and Jeff Garzik committed Feb 6, 2008
1 parent 4f282c3 commit 6559b1d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 15cf6dde99e40bf571a5ca48376650e163fcd30f
refs/heads/master: 370076d932ff56a02b9c5328729a69d432cd4b32
10 changes: 6 additions & 4 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,12 @@ static int virtnet_open(struct net_device *dev)

/* 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);

* now. virtnet_poll wants re-enable the queue, so we disable here.
* We synchronize against interrupts via NAPI_STATE_SCHED */
if (netif_rx_schedule_prep(dev, &vi->napi)) {
vi->rvq->vq_ops->disable_cb(vi->rvq);
__netif_rx_schedule(dev, &vi->napi);
}
return 0;
}

Expand Down

0 comments on commit 6559b1d

Please sign in to comment.