Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 760a3c1a authored by Antoine Tenart's avatar Antoine Tenart Committed by David S. Miller
Browse files

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: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 38a3889f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);