summaryrefslogtreecommitdiff
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)
downloadmtk-20170518-6aa46bf05e056444490b4978c53bf6fb183fb0e3.zip
mtk-20170518-6aa46bf05e056444490b4978c53bf6fb183fb0e3.tar.gz
mtk-20170518-6aa46bf05e056444490b4978c53bf6fb183fb0e3.tar.bz2
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 5f4afad..baa7a19 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;