Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

batman-adv: Distributed ARP Table - add a new debug log level

A new log level has been added to concentrate messages regarding DAT: ARP
snooping, requests, response and DHT related messages.
The new log level is named BATADV_DBG_DAT

Signed-off-by: Antonio Quartulli <ordex@autistici.org>

+5 -2
+2 -1
Documentation/networking/batman-adv.txt
··· 203 203 2 - Enable messages related to route added / changed / deleted 204 204 4 - Enable messages related to translation table operations 205 205 8 - Enable messages related to bridge loop avoidance 206 - 15 - enable all messages 206 + 16 - Enable messaged related to DAT, ARP snooping and parsing 207 + 31 - Enable all messages 207 208 208 209 The debug output can be changed at runtime using the file 209 210 /sys/class/net/bat0/mesh/log_level. e.g.
+3 -1
net/batman-adv/main.h
··· 171 171 * @BATADV_DBG_ROUTES: route added / changed / deleted 172 172 * @BATADV_DBG_TT: translation table messages 173 173 * @BATADV_DBG_BLA: bridge loop avoidance messages 174 + * @BATADV_DBG_DAT: ARP snooping and DAT related messages 174 175 * @BATADV_DBG_ALL: the union of all the above log levels 175 176 */ 176 177 enum batadv_dbg_level { ··· 179 178 BATADV_DBG_ROUTES = BIT(1), 180 179 BATADV_DBG_TT = BIT(2), 181 180 BATADV_DBG_BLA = BIT(3), 182 - BATADV_DBG_ALL = 15, 181 + BATADV_DBG_DAT = BIT(4), 182 + BATADV_DBG_ALL = 31, 183 183 }; 184 184 185 185 #ifdef CONFIG_BATMAN_ADV_DEBUG