Skip to content

Commit d40397b

Browse files
atenartclaudiubeznea
authored andcommitted
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>
1 parent 5f510dd commit d40397b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ static int macb_init(struct platform_device *pdev)
34713471

34723472
queue = &bp->queues[q];
34733473
queue->bp = bp;
3474-
netif_napi_add(dev, &queue->napi, macb_poll, 64);
3474+
netif_napi_add(dev, &queue->napi, macb_poll, NAPI_POLL_WEIGHT);
34753475
if (hw_q) {
34763476
queue->ISR = GEM_ISR(hw_q - 1);
34773477
queue->IER = GEM_IER(hw_q - 1);

0 commit comments

Comments
 (0)