]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: purge bridge loop avoidance when its disabled
authorSimon Wunderlich <simon@open-mesh.com>
Mon, 9 Nov 2015 15:20:52 +0000 (16:20 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commit38d0eff1533210ffc6e244e28e4dfed2c974b1b1
treef2d1e91854fdb7721f2a7e33bb7a4f659d0562ac
parent0823ebe617526d50992125eba2af80befc7fe48b
batman-adv: purge bridge loop avoidance when its disabled

When bridge loop avoidance is disabled through sysfs, the internal
datastructures are not disabled, but only BLA operations are disabled.
To be sure that they are removed, purge the data immediately. That is
especially useful if a firmwares network state is changed, and the BLA
wait periods should restart on the new network.

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/bridge_loop_avoidance.h
net/batman-adv/sysfs.c