]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: lantiq_xrx200: increase napi poll weigth
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 4 Jan 2022 15:11:43 +0000 (16:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Jan 2022 01:18:04 +0000 (17:18 -0800)
NAT Performance results on BT Home Hub 5A (kernel 5.10.89, mtu 1500):

Down Up
Before 545 Mbps 625 Mbps
After 577 Mbps 648 Mbps

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/lantiq_xrx200.c

index 503fb99c5b9096f2f7d966cbcd3037fd9525c03e..7cebf4a601bcac5cca6125b803752f85c6b82859 100644 (file)
@@ -597,8 +597,10 @@ static int xrx200_probe(struct platform_device *pdev)
                         PMAC_HD_CTL);
 
        /* setup NAPI */
-       netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx, 32);
-       netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32);
+       netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx,
+                      NAPI_POLL_WEIGHT);
+       netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping,
+                         NAPI_POLL_WEIGHT);
 
        platform_set_drvdata(pdev, priv);