From: Amerigo Wang Date: Thu, 9 May 2013 19:50:51 +0000 (+0000) Subject: virtio_net: use default napi weight by default X-Git-Tag: submit/tizen_common/20140905.094502~2896^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34710e3e30fee26f4b0617b5458aa1c48236bb0;p=sdk%2Femulator%2Femulator-kernel.git 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" Cc: Eric Dumazet Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3c23fdc..655bb25 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -28,7 +28,7 @@ #include #include -static int napi_weight = 128; +static int napi_weight = NAPI_POLL_WEIGHT; module_param(napi_weight, int, 0444); static bool csum = true, gso = true;