aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2012-01-22 14:00:27 -0500
committerAntonio Quartulli <ordex@autistici.org>2012-04-11 08:29:00 -0400
commit7a5cc24277b57ce38eb0afa6634b71d4d5cc671e (patch)
tree80c25d21e96381269087cf628a4756101c6029c8 /net/batman-adv/bat_debugfs.c
parent38ef3d1d919e6a47c3e0d38b3d788aa468a7ede8 (diff)
batman-adv: add bridge loop avoidance compile option
The define CONFIG_BATMAN_ADV_BLA switches the bridge loop avoidance on - skip it, and the bridge loop avoidance is not compiled in. This is useful if binary size should be saved or the feature is not needed. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r--net/batman-adv/bat_debugfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c
index 0e3517773a8b..916380c73ab7 100644
--- a/net/batman-adv/bat_debugfs.c
+++ b/net/batman-adv/bat_debugfs.c
@@ -245,12 +245,13 @@ static int transtable_global_open(struct inode *inode, struct file *file)
245 return single_open(file, tt_global_seq_print_text, net_dev); 245 return single_open(file, tt_global_seq_print_text, net_dev);
246} 246}
247 247
248#ifdef CONFIG_BATMAN_ADV_BLA
248static int bla_claim_table_open(struct inode *inode, struct file *file) 249static int bla_claim_table_open(struct inode *inode, struct file *file)
249{ 250{
250 struct net_device *net_dev = (struct net_device *)inode->i_private; 251 struct net_device *net_dev = (struct net_device *)inode->i_private;
251 return single_open(file, bla_claim_table_seq_print_text, net_dev); 252 return single_open(file, bla_claim_table_seq_print_text, net_dev);
252} 253}
253 254#endif
254 255
255static int transtable_local_open(struct inode *inode, struct file *file) 256static int transtable_local_open(struct inode *inode, struct file *file)
256{ 257{
@@ -285,7 +286,9 @@ static BAT_DEBUGINFO(routing_algos, S_IRUGO, bat_algorithms_open);
285static BAT_DEBUGINFO(originators, S_IRUGO, originators_open); 286static BAT_DEBUGINFO(originators, S_IRUGO, originators_open);
286static BAT_DEBUGINFO(gateways, S_IRUGO, gateways_open); 287static BAT_DEBUGINFO(gateways, S_IRUGO, gateways_open);
287static BAT_DEBUGINFO(transtable_global, S_IRUGO, transtable_global_open); 288static BAT_DEBUGINFO(transtable_global, S_IRUGO, transtable_global_open);
289#ifdef CONFIG_BATMAN_ADV_BLA
288static BAT_DEBUGINFO(bla_claim_table, S_IRUGO, bla_claim_table_open); 290static BAT_DEBUGINFO(bla_claim_table, S_IRUGO, bla_claim_table_open);
291#endif
289static BAT_DEBUGINFO(transtable_local, S_IRUGO, transtable_local_open); 292static BAT_DEBUGINFO(transtable_local, S_IRUGO, transtable_local_open);
290static BAT_DEBUGINFO(vis_data, S_IRUGO, vis_data_open); 293static BAT_DEBUGINFO(vis_data, S_IRUGO, vis_data_open);
291 294
@@ -293,7 +296,9 @@ static struct bat_debuginfo *mesh_debuginfos[] = {
293 &bat_debuginfo_originators, 296 &bat_debuginfo_originators,
294 &bat_debuginfo_gateways, 297 &bat_debuginfo_gateways,
295 &bat_debuginfo_transtable_global, 298 &bat_debuginfo_transtable_global,
299#ifdef CONFIG_BATMAN_ADV_BLA
296 &bat_debuginfo_bla_claim_table, 300 &bat_debuginfo_bla_claim_table,
301#endif
297 &bat_debuginfo_transtable_local, 302 &bat_debuginfo_transtable_local,
298 &bat_debuginfo_vis_data, 303 &bat_debuginfo_vis_data,
299 NULL, 304 NULL,