virtio_net: use default napi weight by default
Subsystems (3)
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]>
Signed-off-by Cong Wang <[email protected]>
---
drivers/net/virtio_net.c +1 -1
@@ -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;
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, butvirtio_netstill uses 128 by default. This patch makes its default value toNAPI_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]>
Applied.