lantiq: backport latest upstream patches
[openwrt/openwrt.git] / target / linux / lantiq / patches-5.10 / 0714-net-lantiq_xrx200-increase-napi-poll-weigth.patch
1 From 768818d772d5d4ddc0c7eb2e62848929270ab7a3 Mon Sep 17 00:00:00 2001
2 From: Aleksander Jan Bajkowski <olek2@wp.pl>
3 Date: Tue, 4 Jan 2022 16:11:43 +0100
4 Subject: [PATCH 714/715] net: lantiq_xrx200: increase napi poll weigth
5
6 NAT Performance results on BT Home Hub 5A (kernel 5.10.89, mtu 1500):
7
8 Down Up
9 Before 545 Mbps 625 Mbps
10 After 577 Mbps 648 Mbps
11
12 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
13 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 ---
15 drivers/net/ethernet/lantiq_xrx200.c | 6 ++++--
16 1 file changed, 4 insertions(+), 2 deletions(-)
17
18 --- a/drivers/net/ethernet/lantiq_xrx200.c
19 +++ b/drivers/net/ethernet/lantiq_xrx200.c
20 @@ -606,8 +606,10 @@ static int xrx200_probe(struct platform_
21 PMAC_HD_CTL);
22
23 /* setup NAPI */
24 - netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx, 32);
25 - netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping, 32);
26 + netif_napi_add(net_dev, &priv->chan_rx.napi, xrx200_poll_rx,
27 + NAPI_POLL_WEIGHT);
28 + netif_tx_napi_add(net_dev, &priv->chan_tx.napi, xrx200_tx_housekeeping,
29 + NAPI_POLL_WEIGHT);
30
31 platform_set_drvdata(pdev, priv);
32