diff options
author | 2022-11-30 23:30:15 +0100 | |
---|---|---|
committer | 2022-12-03 21:48:40 +0000 | |
commit | 42f66a44d83715bef810a543dfd66008b883a7a5 (patch) | |
tree | f57cc1bfc2ee3dcf4b695af928af8918af28415d /drivers | |
parent | net: add netdev_sw_irq_coalesce_default_on() (diff) | |
download | linux-42f66a44d83715bef810a543dfd66008b883a7a5.tar.gz linux-42f66a44d83715bef810a543dfd66008b883a7a5.tar.bz2 linux-42f66a44d83715bef810a543dfd66008b883a7a5.zip |
r8169: enable GRO software interrupt coalescing per default
There are reports about r8169 not reaching full line speed on certain
systems (e.g. SBC's) with a 2.5Gbps link.
There was a time when hardware interrupt coalescing was enabled per
default, but this was changed due to ASPM-related issues on few systems.
So let's use software interrupt coalescing instead and enable it
using new function netdev_sw_irq_coalesce_default_on().
Even with these conservative settings interrupt load on my 1Gbps test
system reduced significantly.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index ec157885da13..a9dcc98b6af1 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -5283,6 +5283,8 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev->hw_features |= NETIF_F_RXALL; dev->hw_features |= NETIF_F_RXFCS; + netdev_sw_irq_coalesce_default_on(dev); + /* configure chip for default features */ rtl8169_set_features(dev, dev->features); |