diff options
author | Amerigo Wang <amwang@redhat.com> | 2013-05-09 15:50:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-11 20:40:14 -0400 |
commit | d34710e3e30fee26f4b0617b5458aa1c48236bb0 (patch) | |
tree | 0ad120cd54b2eaba50104918b2198272e08e30ee /drivers/net/virtio_net.c | |
parent | 23fbb5a87c56e98a7a4cfac9d6f2ac70f135c4df (diff) |
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" <mst@redhat.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3c23fdc27bf0..655bb25eed2b 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/cpu.h> | 29 | #include <linux/cpu.h> |
30 | 30 | ||
31 | static int napi_weight = 128; | 31 | static int napi_weight = NAPI_POLL_WEIGHT; |
32 | module_param(napi_weight, int, 0444); | 32 | module_param(napi_weight, int, 0444); |
33 | 33 | ||
34 | static bool csum = true, gso = true; | 34 | static bool csum = true, gso = true; |