From 37912d66c24524cc757a1f892b9f74009dc3dfc8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 21 Mar 2015 12:08:07 +0000 Subject: [PATCH] ramips: increase NAPI weight for mt7621 to improve routing performance a bit more Signed-off-by: Felix Fietkau SVN-Revision: 44918 --- .../files/drivers/net/ethernet/ralink/ralink_soc_eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index f98af293c8..ef828244f9 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -1486,9 +1486,9 @@ static int fe_probe(struct platform_device *pdev) napi_weight = 32; if (priv->flags & FE_FLAG_NAPI_WEIGHT) { - napi_weight *= 2; - priv->tx_ring_size *= 2; - priv->rx_ring_size *= 2; + napi_weight *= 4; + priv->tx_ring_size *= 4; + priv->rx_ring_size *= 4; } netif_napi_add(netdev, &priv->rx_napi, fe_poll, napi_weight); fe_set_ethtool_ops(netdev); -- 2.25.1