]> git.ipfire.org Git - thirdparty/openwrt.git/commit
generic: globally enable CONFIG_PCPU_DEV_REFCNT
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 6 Mar 2025 11:19:40 +0000 (12:19 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Mar 2025 08:32:40 +0000 (09:32 +0100)
commitdc84b287b5df0adac9818645e016f5d16cab417d
tree1cd1013df98f75860f48bdab81f482ef6886fc84
parent081ff3eee230202c42958be0d341057244aa0ec1
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@gmail.com>
(cherry picked from commit ea6f3e49d6509f3bddb43364cf7225b4935fee82)
[ adapt for kernel 5.15 ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/generic/config-5.15