hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/batman-adv/Kconfig
....@@ -1,19 +1,7 @@
11 # SPDX-License-Identifier: GPL-2.0
2
-# Copyright (C) 2007-2018 B.A.T.M.A.N. contributors:
2
+# Copyright (C) 2007-2020 B.A.T.M.A.N. contributors:
33 #
44 # Marek Lindner, Simon Wunderlich
5
-#
6
-# This program is free software; you can redistribute it and/or
7
-# modify it under the terms of version 2 of the GNU General Public
8
-# License as published by the Free Software Foundation.
9
-#
10
-# This program is distributed in the hope that it will be useful, but
11
-# WITHOUT ANY WARRANTY; without even the implied warranty of
12
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
-# General Public License for more details.
14
-#
15
-# You should have received a copy of the GNU General Public License
16
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
175
186 #
197 # B.A.T.M.A.N meshing protocol
....@@ -22,14 +10,13 @@
2210 config BATMAN_ADV
2311 tristate "B.A.T.M.A.N. Advanced Meshing Protocol"
2412 depends on NET
25
- select CRC16
2613 select LIBCRC32C
2714 help
28
- B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
29
- a routing protocol for multi-hop ad-hoc mesh networks. The
30
- networks may be wired or wireless. See
31
- https://www.open-mesh.org/ for more information and user space
32
- tools.
15
+ B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
16
+ a routing protocol for multi-hop ad-hoc mesh networks. The
17
+ networks may be wired or wireless. See
18
+ https://www.open-mesh.org/ for more information and user space
19
+ tools.
3320
3421 config BATMAN_ADV_BATMAN_V
3522 bool "B.A.T.M.A.N. V protocol"
....@@ -48,6 +35,7 @@
4835 config BATMAN_ADV_BLA
4936 bool "Bridge Loop Avoidance"
5037 depends on BATMAN_ADV && INET
38
+ select CRC16
5139 default y
5240 help
5341 This option enables BLA (Bridge Loop Avoidance), a mechanism
....@@ -82,6 +70,7 @@
8270 config BATMAN_ADV_MCAST
8371 bool "Multicast optimisation"
8472 depends on BATMAN_ADV && INET && !(BRIDGE=m && BATMAN_ADV=y)
73
+ default y
8574 help
8675 This option enables the multicast optimisation which aims to
8776 reduce the air overhead while improving the reliability of
....@@ -100,9 +89,32 @@
10089
10190 config BATMAN_ADV_DEBUG
10291 bool "B.A.T.M.A.N. debugging"
103
- depends on BATMAN_ADV_DEBUGFS
92
+ depends on BATMAN_ADV
10493 help
10594 This is an option for use by developers; most people should
10695 say N here. This enables compilation of support for
107
- outputting debugging information to the kernel log. The
108
- output is controlled via the module parameter debug.
96
+ outputting debugging information to the debugfs log or tracing
97
+ buffer. The output is controlled via the batadv netdev specific
98
+ log_level setting.
99
+
100
+config BATMAN_ADV_SYSFS
101
+ bool "batman-adv sysfs entries"
102
+ depends on BATMAN_ADV
103
+ help
104
+ Say Y here if you want to enable batman-adv device configuration and
105
+ status interface through sysfs attributes. It is replaced by the
106
+ batadv generic netlink family but still used by various userspace
107
+ tools and scripts.
108
+
109
+ If unsure, say Y.
110
+
111
+config BATMAN_ADV_TRACING
112
+ bool "B.A.T.M.A.N. tracing support"
113
+ depends on BATMAN_ADV
114
+ depends on EVENT_TRACING
115
+ help
116
+ This is an option for use by developers; most people should
117
+ say N here. Select this option to gather traces like the debug
118
+ messages using the generic tracing infrastructure of the kernel.
119
+ BATMAN_ADV_DEBUG must also be selected to get trace events for
120
+ batadv_dbg.