From: Antoine Tenart Date: Fri, 21 Jun 2019 15:28:55 +0000 (+0200) Subject: net: macb: use NAPI_POLL_WEIGHT X-Git-Tag: v5.4-rc1~616^2~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=760a3c1aa173cafb6e8c12cc038fa8ef442625b0;p=platform%2Fkernel%2Flinux-rpi.git net: macb: use NAPI_POLL_WEIGHT Use NAPI_POLL_WEIGHT, the default NAPI poll() weight instead of redefining our own value (which turns out to be 64 as well). Signed-off-by: Antoine Tenart Acked-by: Nicolas Ferre Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index b4fa011..db97b04 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -3487,7 +3487,7 @@ static int macb_init(struct platform_device *pdev) queue = &bp->queues[q]; queue->bp = bp; - netif_napi_add(dev, &queue->napi, macb_poll, 64); + netif_napi_add(dev, &queue->napi, macb_poll, NAPI_POLL_WEIGHT); if (hw_q) { queue->ISR = GEM_ISR(hw_q - 1); queue->IER = GEM_IER(hw_q - 1);