Skip to contentSkip to conversation

virtio_net: use default napi weight by default

PATCH Applied Cong Wang 2 participants 2 messages May 10, 2013 – May 12, 2013

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 virtio_net: use default napi weight by default

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]>

---

drivers/net/virtio_net.c +1 -1
index 3c23fdc..655bb25 100644
@@ -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;
maintainer Applied
#1 lore raw

From: Cong Wang <[email protected]>
Date: Fri, 10 May 2013 13:50:51 +0800

Quoted 1 line

Since commit 82dc3c63c692b1e1d5937(net: introduce NAPI_POLL_WEIGHT)

I corrected this to:

	commit 82dc3c63c692b1e1d5937 ("net: introduce NAPI_POLL_WEIGHT")
Quoted 8 lines

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]>

Applied.