bmips: fix Tx cleanup when NAPI poll budget is zero
authorSieng-Piaw Liew <liew.s.piaw@gmail.com>
Fri, 8 Jul 2022 08:16:08 +0000 (16:16 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 4 Mar 2023 18:28:16 +0000 (19:28 +0100)
commita6a54135ef7dca13a3f042afe83a99ce0218622c
tree5c7f4e6af1b7ddec579d4123391a454ee52b9e65
parentcbc1fcf0e4e21cf331cbd92dd7802b8f40c31107
bmips: 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.

https://lore.kernel.org/netdev/20220707141056.2644-1-liew.s.piaw@gmail.com/t/#m470f5c20225e76fb08c44d6cfa2f1b739ffaaea4
Signed-off-by: Sieng-Piaw Liew <liew.s.piaw@gmail.com>
[improve code format]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c