diff options
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index a61c176607f4..e66de0c12fc1 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -24,6 +24,9 @@ | |||
24 | #include <linux/virtio_net.h> | 24 | #include <linux/virtio_net.h> |
25 | #include <linux/scatterlist.h> | 25 | #include <linux/scatterlist.h> |
26 | 26 | ||
27 | static int napi_weight = 128; | ||
28 | module_param(napi_weight, int, 0444); | ||
29 | |||
27 | static int csum = 1, gso = 1; | 30 | static int csum = 1, gso = 1; |
28 | module_param(csum, bool, 0444); | 31 | module_param(csum, bool, 0444); |
29 | module_param(gso, bool, 0444); | 32 | module_param(gso, bool, 0444); |
@@ -353,7 +356,7 @@ static int virtnet_probe(struct virtio_device *vdev) | |||
353 | 356 | ||
354 | /* Set up our device-specific information */ | 357 | /* Set up our device-specific information */ |
355 | vi = netdev_priv(dev); | 358 | vi = netdev_priv(dev); |
356 | netif_napi_add(dev, &vi->napi, virtnet_poll, 16); | 359 | netif_napi_add(dev, &vi->napi, virtnet_poll, napi_weight); |
357 | vi->dev = dev; | 360 | vi->dev = dev; |
358 | vi->vdev = vdev; | 361 | vi->vdev = vdev; |
359 | 362 | ||