From: Rosen Penev Date: Thu, 7 Sep 2017 02:57:41 +0000 (-0700) Subject: ramips: Change ethernet driver to use napi_complete_done. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6aa46bf05e056444490b4978c53bf6fb183fb0e3;p=openwrt%2Fstaging%2Flynxis.git 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 --- 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;