blob: 5e3fffe707ddcef45acb9355ee12cd9d58b385bf [file] [log] [blame]
Eric Dumazet4d92b952021-12-04 20:21:57 -08001# SPDX-License-Identifier: GPL-2.0-only
2
3config NET_DEV_REFCNT_TRACKER
4 bool "Enable net device refcount tracking"
Lukas Bulwahncaddb4e2022-09-15 14:42:56 +02005 depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
Eric Dumazet4d92b952021-12-04 20:21:57 -08006 select REF_TRACKER
7 default n
8 help
9 Enable debugging feature to track device references.
10 This adds memory and cpu costs.
Eric Dumazet9ba74e62021-12-09 23:44:21 -080011
12config NET_NS_REFCNT_TRACKER
13 bool "Enable networking namespace refcount tracking"
Lukas Bulwahncaddb4e2022-09-15 14:42:56 +020014 depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
Eric Dumazet9ba74e62021-12-09 23:44:21 -080015 select REF_TRACKER
16 default n
17 help
18 Enable debugging feature to track netns references.
19 This adds memory and cpu costs.
Eric Dumazetd268c1f2022-05-09 20:57:38 -070020
21config DEBUG_NET
22 bool "Add generic networking debug"
Eric Dumazeteb0b39e2022-06-02 09:18:57 -070023 depends on DEBUG_KERNEL && NET
Eric Dumazetd268c1f2022-05-09 20:57:38 -070024 help
25 Enable extra sanity checks in networking.
26 This is mostly used by fuzzers, but is safe to select.