diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2022-01-04 16:11:43 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-05 17:18:04 -0800 |
commit | 768818d772d5d4ddc0c7eb2e62848929270ab7a3 (patch) | |
tree | a27c41f46b81b2833cc48f5fddbf5f443b7f3bed | |
parent | 5112e9234bbb89f8dd15c983206bd9107b8436d5 (diff) | |
download | linux-768818d772d5d4ddc0c7eb2e62848929270ab7a3.tar.bz2 |
net: lantiq_xrx200: increase napi poll weigth
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>
-rw-r--r-- | drivers/net/ethernet/lantiq_xrx200.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/lantiq_xrx200.c b/drivers/net/ethernet/lantiq_xrx200.c index 503fb99c5b90..7cebf4a601bc 100644 --- a/drivers/net/ethernet/lantiq_xrx200.c +++ b/drivers/net/ethernet/lantiq_xrx200.c @@ -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); |