forked from Openwrt/openwrt
Update patch set for new release and add required kernel option CONFIG_ZRAM_TRACK_ENTRY_ACTIME to generic config Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.66 Manually rebased: bcm27xx/patches-6.6/950-0092-MMC-added-alternative-MMC-driver.patch bcm53xx/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch starfive/patches-6.6/1000-serial-8250_dw-Add-starfive-jh7100-hsuart-compatible.patch Removed upstreamed: bcm27xx/patches-6.6/950-0029-vc4_hdmi-Avoid-log-spam-for-audio-start-failure.patch[1] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.66&id=e0388a95736abd1f5f5a94221dd1ac24eacbd4d7 Build system: x86/64 Build-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Run-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/17271 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From 400909df6e6543cb5cce3db9bbcd413d59125327 Mon Sep 17 00:00:00 2001
|
|
From: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Date: Sat, 10 Feb 2024 17:58:29 +0100
|
|
Subject: [PATCH] r8169: simplify code by using core-provided pcpu stats
|
|
allocation
|
|
|
|
Use core-provided pcpu stats allocation instead of open-coding it in
|
|
the driver.
|
|
|
|
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Link: https://lore.kernel.org/r/03f5bb3b-d7f4-48be-ae8a-54862ec4566c@gmail.com
|
|
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
|
---
|
|
drivers/net/ethernet/realtek/r8169_main.c | 7 ++-----
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
--- a/drivers/net/ethernet/realtek/r8169_main.c
|
|
+++ b/drivers/net/ethernet/realtek/r8169_main.c
|
|
@@ -5296,11 +5296,6 @@ static int rtl_init_one(struct pci_dev *
|
|
raw_spin_lock_init(&tp->mac_ocp_lock);
|
|
mutex_init(&tp->led_lock);
|
|
|
|
- dev->tstats = devm_netdev_alloc_pcpu_stats(&pdev->dev,
|
|
- struct pcpu_sw_netstats);
|
|
- if (!dev->tstats)
|
|
- return -ENOMEM;
|
|
-
|
|
/* Get the *optional* external "ether_clk" used on some boards */
|
|
tp->clk = devm_clk_get_optional_enabled(&pdev->dev, "ether_clk");
|
|
if (IS_ERR(tp->clk))
|
|
@@ -5415,6 +5410,8 @@ static int rtl_init_one(struct pci_dev *
|
|
dev->hw_features |= NETIF_F_RXALL;
|
|
dev->hw_features |= NETIF_F_RXFCS;
|
|
|
|
+ dev->pcpu_stat_type = NETDEV_PCPU_STAT_TSTATS;
|
|
+
|
|
netdev_sw_irq_coalesce_default_on(dev);
|
|
|
|
/* configure chip for default features */
|