ramips: Change ethernet driver to use napi_complete_done.

Backport of mailine linux commit. Speeds up ethernet slightly and reduces latency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2017-09-06 19:57:41 -07:00 committed by John Crispin
parent 79366b8194
commit 6aa46bf05e

View file

@ -1003,7 +1003,7 @@ static int fe_poll(struct napi_struct *napi, int budget)
goto poll_again; goto poll_again;
} }
napi_complete(napi); napi_complete_done(napi, rx_done);
fe_int_enable(tx_intr | rx_intr); fe_int_enable(tx_intr | rx_intr);
} else { } else {
rx_done = budget; rx_done = budget;