]> Git Repo - linux.git/commitdiff
virtio_net: use default napi weight by default
authorAmerigo Wang <[email protected]>
Thu, 9 May 2013 19:50:51 +0000 (19:50 +0000)
committerDavid S. Miller <[email protected]>
Sun, 12 May 2013 00:40:14 +0000 (17:40 -0700)
Since commit 82dc3c63c692b1e1d5937 ("net: introduce NAPI_POLL_WEIGHT")
we warn drivers when they use napi weight higher than NAPI_POLL_WEIGHT,
but virtio_net still uses 128 by default. This patch makes its default
value to NAPI_POLL_WEIGHT.

Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/virtio_net.c

index 3c23fdc27bf0798085361a64d6262cdaed34c66b..655bb25eed2b6e208baf2acb8b15a5f55d76f4a9 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/slab.h>
 #include <linux/cpu.h>
 
-static int napi_weight = 128;
+static int napi_weight = NAPI_POLL_WEIGHT;
 module_param(napi_weight, int, 0444);
 
 static bool csum = true, gso = true;
This page took 0.056144 seconds and 4 git commands to generate.