Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: macb: Use netif_napi_add_tx() instead of netif_napi_add() for TX NAPI

The TX NAPI should be registered via netif_napi_add_tx() to avoid
unnecessarily polluting the napi_hash table.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20260403-macb-napi-tx-v1-1-08126a60c65e@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kevin Hao and committed by
Jakub Kicinski
c321b567 646dbda2

+1 -1
+1 -1
drivers/net/ethernet/cadence/macb_main.c
··· 4743 4743 queue->bp = bp; 4744 4744 spin_lock_init(&queue->tx_ptr_lock); 4745 4745 netif_napi_add(dev, &queue->napi_rx, macb_rx_poll); 4746 - netif_napi_add(dev, &queue->napi_tx, macb_tx_poll); 4746 + netif_napi_add_tx(dev, &queue->napi_tx, macb_tx_poll); 4747 4747 if (hw_q) { 4748 4748 queue->ISR = GEM_ISR(hw_q - 1); 4749 4749 queue->IER = GEM_IER(hw_q - 1);