mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
caddb4e0d6
It makes little sense to ask if networking namespace or net device refcount
tracking shall be enabled for debug kernel builds without network support.
This is similar to the commit eb0b39efb7
("net: CONFIG_DEBUG_NET depends
on CONFIG_NET").
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/r/20220915124256.32512-1-lukas.bulwahn@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
27 lines
758 B
Plaintext
27 lines
758 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config NET_DEV_REFCNT_TRACKER
|
|
bool "Enable net device refcount tracking"
|
|
depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
|
|
select REF_TRACKER
|
|
default n
|
|
help
|
|
Enable debugging feature to track device references.
|
|
This adds memory and cpu costs.
|
|
|
|
config NET_NS_REFCNT_TRACKER
|
|
bool "Enable networking namespace refcount tracking"
|
|
depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
|
|
select REF_TRACKER
|
|
default n
|
|
help
|
|
Enable debugging feature to track netns references.
|
|
This adds memory and cpu costs.
|
|
|
|
config DEBUG_NET
|
|
bool "Add generic networking debug"
|
|
depends on DEBUG_KERNEL && NET
|
|
help
|
|
Enable extra sanity checks in networking.
|
|
This is mostly used by fuzzers, but is safe to select.
|