[source] ramips: reduce napi_weight in the ethernet driver.

LEDE Commits lede-commits at lists.infradead.org
Thu Sep 28 00:22:16 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/dcdc2880b6053f8126218f3fc84dbfc9a432f10a

commit dcdc2880b6053f8126218f3fc84dbfc9a432f10a
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Mon Sep 18 22:23:01 2017 -0700

    ramips: reduce napi_weight in the ethernet driver.
    
    Currently dmsg a weight of 128 which is above the kernel limit of 64. Silence the warning.
    
    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 baa7a19..a9d2f38 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
@@ -1536,7 +1536,7 @@ static int fe_probe(struct platform_device *pdev)
 	priv->rx_ring.rx_ring_size = NUM_DMA_DESC;
 	INIT_WORK(&priv->pending_work, fe_pending_work);
 
-	napi_weight = 32;
+	napi_weight = 16;
 	if (priv->flags & FE_FLAG_NAPI_WEIGHT) {
 		napi_weight *= 4;
 		priv->tx_ring.tx_ring_size *= 4;



More information about the lede-commits mailing list