aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-21 12:08:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-21 12:08:07 +0000
commit7b1f9665a3fb5e6a6ab7e9836fc08035fd22c279 (patch)
tree6c1dfcd59803163f17c2e9f8783708c5fd338456 /target
parentdef8e2e47805cbf76486c2761db1192d9c91773b (diff)
downloadupstream-7b1f9665a3fb5e6a6ab7e9836fc08035fd22c279.tar.gz
upstream-7b1f9665a3fb5e6a6ab7e9836fc08035fd22c279.tar.bz2
upstream-7b1f9665a3fb5e6a6ab7e9836fc08035fd22c279.zip
ramips: increase NAPI weight for mt7621 to improve routing performance a bit more
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44918 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c6
1 files 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);