aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_sysfs.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_sysfs.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_sysfs.c')
-rw-r--r--net/batman-adv/bat_sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index 824bfe710687..c6efd687ca75 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -386,7 +386,9 @@ static ssize_t store_gw_bwidth(struct kobject *kobj, struct attribute *attr,
386 386
387BAT_ATTR_BOOL(aggregated_ogms, S_IRUGO | S_IWUSR, NULL); 387BAT_ATTR_BOOL(aggregated_ogms, S_IRUGO | S_IWUSR, NULL);
388BAT_ATTR_BOOL(bonding, S_IRUGO | S_IWUSR, NULL); 388BAT_ATTR_BOOL(bonding, S_IRUGO | S_IWUSR, NULL);
389#ifdef CONFIG_BATMAN_ADV_BLA
389BAT_ATTR_BOOL(bridge_loop_avoidance, S_IRUGO | S_IWUSR, NULL); 390BAT_ATTR_BOOL(bridge_loop_avoidance, S_IRUGO | S_IWUSR, NULL);
391#endif
390BAT_ATTR_BOOL(fragmentation, S_IRUGO | S_IWUSR, update_min_mtu); 392BAT_ATTR_BOOL(fragmentation, S_IRUGO | S_IWUSR, update_min_mtu);
391BAT_ATTR_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL); 393BAT_ATTR_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL);
392static BAT_ATTR(vis_mode, S_IRUGO | S_IWUSR, show_vis_mode, store_vis_mode); 394static BAT_ATTR(vis_mode, S_IRUGO | S_IWUSR, show_vis_mode, store_vis_mode);
@@ -405,7 +407,9 @@ BAT_ATTR_UINT(log_level, S_IRUGO | S_IWUSR, 0, 15, NULL);
405static struct bat_attribute *mesh_attrs[] = { 407static struct bat_attribute *mesh_attrs[] = {
406 &bat_attr_aggregated_ogms, 408 &bat_attr_aggregated_ogms,
407 &bat_attr_bonding, 409 &bat_attr_bonding,
410#ifdef CONFIG_BATMAN_ADV_BLA
408 &bat_attr_bridge_loop_avoidance, 411 &bat_attr_bridge_loop_avoidance,
412#endif
409 &bat_attr_fragmentation, 413 &bat_attr_fragmentation,
410 &bat_attr_ap_isolation, 414 &bat_attr_ap_isolation,
411 &bat_attr_vis_mode, 415 &bat_attr_vis_mode,