summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files-4.9
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2017-09-18 22:23:01 -0700
committerJohn Crispin <john@phrozen.org>2017-09-28 09:22:02 +0200
commitdcdc2880b6053f8126218f3fc84dbfc9a432f10a (patch)
tree582b64da8b6649d50e698bf89a61b6dd9804c0db /target/linux/ramips/files-4.9
parent1a5bf778fb4f8b648716d9f8275c6a0af503cfe5 (diff)
downloadmtk-20170518-dcdc2880b6053f8126218f3fc84dbfc9a432f10a.zip
mtk-20170518-dcdc2880b6053f8126218f3fc84dbfc9a432f10a.tar.gz
mtk-20170518-dcdc2880b6053f8126218f3fc84dbfc9a432f10a.tar.bz2
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@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 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;