Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82829
b: refs/heads/master
c: 6c0cd7c
h: refs/heads/master
i:
  82827: b648fa1
v: v3
  • Loading branch information
Dor Laor authored and Rusty Russell committed Feb 4, 2008
1 parent b83f444 commit 039ef74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 2cb9c6bafc58cf4066cb15f0ac6989a1015a02cc
refs/heads/master: 6c0cd7c000dc0851035c5003bf9d47733d0b257b
5 changes: 4 additions & 1 deletion trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <linux/virtio_net.h>
#include <linux/scatterlist.h>

static int napi_weight = 128;
module_param(napi_weight, int, 0444);

static int csum = 1, gso = 1;
module_param(csum, bool, 0444);
module_param(gso, bool, 0444);
Expand Down Expand Up @@ -353,7 +356,7 @@ static int virtnet_probe(struct virtio_device *vdev)

/* Set up our device-specific information */
vi = netdev_priv(dev);
netif_napi_add(dev, &vi->napi, virtnet_poll, 16);
netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight);
vi->dev = dev;
vi->vdev = vdev;

Expand Down

0 comments on commit 039ef74

Please sign in to comment.