[source] ramips: Change ethernet driver to use napi_complete_done.
LEDE Commits
lede-commits at lists.infradead.org
Mon Sep 11 08:23:21 PDT 2017
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/6aa46bf05e056444490b4978c53bf6fb183fb0e3
commit 6aa46bf05e056444490b4978c53bf6fb183fb0e3
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Wed Sep 6 19:57:41 2017 -0700
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 at gmail.com>
---
target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/mtk_eth_soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the lede-commits
mailing list