[PATCH net-next] net: ethernet: mediatek: enhance TX path with recycling more SKBs in one poll

David Miller davem at davemloft.net
Tue Apr 11 07:49:24 PDT 2017


From: <sean.wang at mediatek.com>
Date: Tue, 11 Apr 2017 16:34:27 +0800

> From: Sean Wang <sean.wang at mediatek.com>
> 
> The patch adds the enhancement for recycling more TX completed SKBs in
> one NAPI polling handler if NAPI budgets are still available and hardware
> raises status bit shown for certain SKBs are aready done.
> 
> Signed-off-by: Sean Wang <sean.wang at mediatek.com>

You should always, unconditionally, process all TX reclaim events
every NAPI poll, regardless of how much budget is left.

TX reclaim work is not counted against the NAPI budget, only RX work
should be.



More information about the Linux-mediatek mailing list