[openwrt/openwrt] generic: globally enable CONFIG_PCPU_DEV_REFCNT
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 19 01:25:16 PDT 2025
ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/53479294fb0a85368a0359df171e452b4bdcbdbf
commit 53479294fb0a85368a0359df171e452b4bdcbdbf
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Mar 6 12:19:40 2025 +0100
generic: globally enable CONFIG_PCPU_DEV_REFCNT
Quoting the kconfig description for CONFIG_PCPU_DEV_REFCNT:
network device refcount are using per cpu variables if this option is
set. This can be forced to N to detect underflows (with a performance
drop).
This was introduced from kernel 5.13 and was wrongly set as disabled.
Some target actually enables it but this should be always enabled unless
refcount needs to be debugged (unlikely for production images)
Enable in generic and drop the entry in every other target.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18174
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit ea6f3e49d6509f3bddb43364cf7225b4935fee82)
---
target/linux/d1/config-6.6 | 1 -
target/linux/generic/config-6.6 | 2 +-
target/linux/loongarch64/config-6.6 | 1 -
target/linux/stm32/stm32mp1/config-6.6 | 1 -
4 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/target/linux/d1/config-6.6 b/target/linux/d1/config-6.6
index 7330cc0e24..0bfcdf7958 100644
--- a/target/linux/d1/config-6.6
+++ b/target/linux/d1/config-6.6
@@ -217,7 +217,6 @@ CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
# CONFIG_PAGE_TABLE_CHECK is not set
CONFIG_PANIC_TIMEOUT=0
-CONFIG_PCPU_DEV_REFCNT=y
CONFIG_PGTABLE_LEVELS=5
CONFIG_PHYLIB=y
CONFIG_PHYLINK=y
diff --git a/target/linux/generic/config-6.6 b/target/linux/generic/config-6.6
index c8ebee7027..46283ac3bd 100644
--- a/target/linux/generic/config-6.6
+++ b/target/linux/generic/config-6.6
@@ -4563,7 +4563,7 @@ CONFIG_PCI_SYSCALL=y
# CONFIG_PCMCIA_XIRC2PS is not set
# CONFIG_PCMCIA_XIRCOM is not set
# CONFIG_PCNET32 is not set
-# CONFIG_PCPU_DEV_REFCNT is not set
+CONFIG_PCPU_DEV_REFCNT=y
CONFIG_PCP_BATCH_SCALE_MAX=5
# CONFIG_PCSPKR_PLATFORM is not set
# CONFIG_PCS_MTK_USXGMII is not set
diff --git a/target/linux/loongarch64/config-6.6 b/target/linux/loongarch64/config-6.6
index 57bc7d5691..3badd8e94e 100644
--- a/target/linux/loongarch64/config-6.6
+++ b/target/linux/loongarch64/config-6.6
@@ -526,7 +526,6 @@ CONFIG_PCI_LOONGSON=y
CONFIG_PCI_MSI=y
CONFIG_PCI_MSI_ARCH_FALLBACKS=y
CONFIG_PCI_REALLOC_ENABLE_AUTO=y
-CONFIG_PCPU_DEV_REFCNT=y
# CONFIG_PDS_CORE is not set
CONFIG_PERF_USE_VMALLOC=y
CONFIG_PGTABLE_3LEVEL=y
diff --git a/target/linux/stm32/stm32mp1/config-6.6 b/target/linux/stm32/stm32mp1/config-6.6
index 0428216ecb..f7ed9030c6 100644
--- a/target/linux/stm32/stm32mp1/config-6.6
+++ b/target/linux/stm32/stm32mp1/config-6.6
@@ -344,7 +344,6 @@ CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=0
-CONFIG_PCPU_DEV_REFCNT=y
CONFIG_PCS_XPCS=y
CONFIG_PERF_USE_VMALLOC=y
CONFIG_PGTABLE_LEVELS=2
More information about the lede-commits
mailing list