mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user