aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files-4.9
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-09-06 19:57:41 -0700
committerJohn Crispin <john@phrozen.org>2017-09-11 17:03:54 +0200
commit6aa46bf05e056444490b4978c53bf6fb183fb0e3 (patch)
tree01408807d9298add31d1a532855654df4707d4ee /target/linux/ramips/files-4.9
parent79366b81945d38ce1afd0bca867a0a457e0605f9 (diff)
downloadupstream-6aa46bf05e056444490b4978c53bf6fb183fb0e3.tar.gz
upstream-6aa46bf05e056444490b4978c53bf6fb183fb0e3.tar.bz2
upstream-6aa46bf05e056444490b4978c53bf6fb183fb0e3.zip
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>
Diffstat (limited to 'target/linux/ramips/files-4.9')
-rw-r--r--target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c
index 5f4afade06..baa7a198d0 100644
--- a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c
+++ b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c
@@ -1003,7 +1003,7 @@ static int fe_poll(struct napi_struct *napi, int budget)
goto poll_again;
}
- napi_complete(napi);
+ napi_complete_done(napi, rx_done);
fe_int_enable(tx_intr | rx_intr);
} else {
rx_done = budget;