summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/Kconfig
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-07-16 03:31:20 -0400
committerSimon Wunderlich <sw@simonwunderlich.de>2016-08-09 01:54:54 -0400
commitdc1cbd145eecf21209d0322874e1766bcbce3e3f (patch)
tree6b49d9b1b47af18984ff769f7b2d94a98a113521 /net/batman-adv/Kconfig
parent06d640c9aad6d96713ea2fbe36f5a344428ccd57 (diff)
batman-adv: Allow to disable debugfs support
The files provided by batman-adv via debugfs are currently converted to netlink. Tools which are not yet converted to use the netlink interface may still rely on the old debugfs files. But systems which already upgraded their tools can save some space by disabling this feature. The default configuration of batman-adv on amd64 can reduce the size of the module by around 11% when this feature is disabled. $ size net/batman-adv/batman-adv.ko* text data bss dec hex filename 150507 10395 4160 165062 284c6 net/batman-adv/batman-adv.ko.y 137106 7099 2112 146317 23b8d net/batman-adv/batman-adv.ko.n Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/Kconfig')
-rw-r--r--net/batman-adv/Kconfig15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
index 833bb145ba3c..f20742cbae6d 100644
--- a/net/batman-adv/Kconfig
+++ b/net/batman-adv/Kconfig
@@ -73,10 +73,21 @@ config BATMAN_ADV_MCAST
73 reduce the air overhead while improving the reliability of 73 reduce the air overhead while improving the reliability of
74 multicast messages. 74 multicast messages.
75 75
76config BATMAN_ADV_DEBUG 76config BATMAN_ADV_DEBUGFS
77 bool "B.A.T.M.A.N. debugging" 77 bool "batman-adv debugfs entries"
78 depends on BATMAN_ADV 78 depends on BATMAN_ADV
79 depends on DEBUG_FS 79 depends on DEBUG_FS
80 default y
81 help
82 Enable this to export routing related debug tables via debugfs.
83 The information for each soft-interface and used hard-interface can be
84 found under batman_adv/
85
86 If unsure, say Y.
87
88config BATMAN_ADV_DEBUG
89 bool "B.A.T.M.A.N. debugging"
90 depends on BATMAN_ADV_DEBUGFS
80 help 91 help
81 This is an option for use by developers; most people should 92 This is an option for use by developers; most people should
82 say N here. This enables compilation of support for 93 say N here. This enables compilation of support for