Skip to content

Commit d34710e

Browse files
Amerigo Wangdavem330
authored andcommitted
virtio_net: use default napi weight by default
Since commit 82dc3c6 ("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]>
1 parent 23fbb5a commit d34710e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/virtio_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <linux/slab.h>
2929
#include <linux/cpu.h>
3030

31-
static int napi_weight = 128;
31+
static int napi_weight = NAPI_POLL_WEIGHT;
3232
module_param(napi_weight, int, 0444);
3333

3434
static bool csum = true, gso = true;

0 commit comments

Comments
 (0)