Skip to content
Commit 10c8fd2f authored by Sieng-Piaw Liew's avatar Sieng-Piaw Liew Committed by Jakub Kicinski
Browse files

bcm63xx: fix Tx cleanup when NAPI poll budget is zero



NAPI poll() function may be passed a budget value of zero, i.e. during
netpoll, which isn't NAPI context.
Therefore, napi_consume_skb() must be given budget value instead of
!force to truly discern netpoll-like scenarios.

Fixes: c63c615e ("bcm63xx_enet: switch to napi_build_skb() to reuse skbuff_heads")
Signed-off-by: default avatarSieng-Piaw Liew <liew.s.piaw@gmail.com>
Link: https://lore.kernel.org/r/20220708080303.298-1-liew.s.piaw@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b205c1b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment