ath79: fix Tx cleanup when NAPI poll budget is zero
authorSieng-Piaw Liew <liew.s.piaw@gmail.com>
Fri, 8 Jul 2022 01:03:53 +0000 (09:03 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 14 Jul 2022 10:51:16 +0000 (12:51 +0200)
commit3acd2ea14802aa39a8a25a2f20b1a6a20efca3f2
treec12fdeabca2cdce3fd7761493a39e01e0abd0175
parentba7da7368086d0721da7cd4d627209dffda5c1d6
ath79: 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
!flush 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>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c