[openwrt/openwrt] generic: globally enable CONFIG_PCPU_DEV_REFCNT
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 19 01:32:55 PDT 2025
ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/dc84b287b5df0adac9818645e016f5d16cab417d
commit dc84b287b5df0adac9818645e016f5d16cab417d
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.
Link: https://github.com/openwrt/openwrt/pull/18174
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit ea6f3e49d6509f3bddb43364cf7225b4935fee82)
[ adapt for kernel 5.15 ]
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
target/linux/generic/config-5.15 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index fd386467ef..8fe2db33ac 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -4658,7 +4658,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_PCSPKR_PLATFORM is not set
# CONFIG_PCS_XPCS is not set
# CONFIG_PD6729 is not set
More information about the lede-commits
mailing list