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 <antoine.tenart@bootlin.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
38a3889f2d
commit
760a3c1aa1
|
@ -3487,7 +3487,7 @@ static int macb_init(struct platform_device *pdev)
|
||||||
|
|
||||||
queue = &bp->queues[q];
|
queue = &bp->queues[q];
|
||||||
queue->bp = bp;
|
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) {
|
if (hw_q) {
|
||||||
queue->ISR = GEM_ISR(hw_q - 1);
|
queue->ISR = GEM_ISR(hw_q - 1);
|
||||||
queue->IER = GEM_IER(hw_q - 1);
|
queue->IER = GEM_IER(hw_q - 1);
|
||||||
|
|
Loading…
Reference in New Issue