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

From: David Miller
Date: Tue Apr 11 2017 - 10:49:31 EST


From: <sean.wang@xxxxxxxxxxxx>
Date: Tue, 11 Apr 2017 16:34:27 +0800

> From: Sean Wang <sean.wang@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxx>

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.