diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2012-01-22 14:00:20 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-04-11 08:28:59 -0400 |
commit | c867305509e9bb748d9349c84cc26beaa95ccd73 (patch) | |
tree | 41f41cd84581538f4d6bc49ec79c5054ae063bf2 | |
parent | 23721387c409087fd3b97e274f34d3ddc0970b74 (diff) |
batman-adv: make bridge loop avoidance switchable
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-net-mesh | 9 | ||||
-rw-r--r-- | net/batman-adv/bat_sysfs.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-net-mesh b/Documentation/ABI/testing/sysfs-class-net-mesh index b218e0f8bdb3..c81fe89c4c46 100644 --- a/Documentation/ABI/testing/sysfs-class-net-mesh +++ b/Documentation/ABI/testing/sysfs-class-net-mesh | |||
@@ -14,6 +14,15 @@ Description: | |||
14 | mesh will be sent using multiple interfaces at the | 14 | mesh will be sent using multiple interfaces at the |
15 | same time (if available). | 15 | same time (if available). |
16 | 16 | ||
17 | What: /sys/class/net/<mesh_iface>/mesh/bridge_loop_avoidance | ||
18 | Date: November 2011 | ||
19 | Contact: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> | ||
20 | Description: | ||
21 | Indicates whether the bridge loop avoidance feature | ||
22 | is enabled. This feature detects and avoids loops | ||
23 | between the mesh and devices bridged with the soft | ||
24 | interface <mesh_iface>. | ||
25 | |||
17 | What: /sys/class/net/<mesh_iface>/mesh/fragmentation | 26 | What: /sys/class/net/<mesh_iface>/mesh/fragmentation |
18 | Date: October 2010 | 27 | Date: October 2010 |
19 | Contact: Andreas Langer <an.langer@gmx.de> | 28 | Contact: Andreas Langer <an.langer@gmx.de> |
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c index d12757fbe10a..824bfe710687 100644 --- a/net/batman-adv/bat_sysfs.c +++ b/net/batman-adv/bat_sysfs.c | |||
@@ -386,6 +386,7 @@ static ssize_t store_gw_bwidth(struct kobject *kobj, struct attribute *attr, | |||
386 | 386 | ||
387 | BAT_ATTR_BOOL(aggregated_ogms, S_IRUGO | S_IWUSR, NULL); | 387 | BAT_ATTR_BOOL(aggregated_ogms, S_IRUGO | S_IWUSR, NULL); |
388 | BAT_ATTR_BOOL(bonding, S_IRUGO | S_IWUSR, NULL); | 388 | BAT_ATTR_BOOL(bonding, S_IRUGO | S_IWUSR, NULL); |
389 | BAT_ATTR_BOOL(bridge_loop_avoidance, S_IRUGO | S_IWUSR, NULL); | ||
389 | BAT_ATTR_BOOL(fragmentation, S_IRUGO | S_IWUSR, update_min_mtu); | 390 | BAT_ATTR_BOOL(fragmentation, S_IRUGO | S_IWUSR, update_min_mtu); |
390 | BAT_ATTR_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL); | 391 | BAT_ATTR_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL); |
391 | static BAT_ATTR(vis_mode, S_IRUGO | S_IWUSR, show_vis_mode, store_vis_mode); | 392 | static BAT_ATTR(vis_mode, S_IRUGO | S_IWUSR, show_vis_mode, store_vis_mode); |
@@ -404,6 +405,7 @@ BAT_ATTR_UINT(log_level, S_IRUGO | S_IWUSR, 0, 15, NULL); | |||
404 | static struct bat_attribute *mesh_attrs[] = { | 405 | static struct bat_attribute *mesh_attrs[] = { |
405 | &bat_attr_aggregated_ogms, | 406 | &bat_attr_aggregated_ogms, |
406 | &bat_attr_bonding, | 407 | &bat_attr_bonding, |
408 | &bat_attr_bridge_loop_avoidance, | ||
407 | &bat_attr_fragmentation, | 409 | &bat_attr_fragmentation, |
408 | &bat_attr_ap_isolation, | 410 | &bat_attr_ap_isolation, |
409 | &bat_attr_vis_mode, | 411 | &bat_attr_vis_mode, |