]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Allow to modify slaves of soft-interfaces through rntl_link
authorSven Eckelmann <sven@narfation.org>
Mon, 11 Feb 2013 09:10:27 +0000 (17:10 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 27 Mar 2013 09:29:52 +0000 (10:29 +0100)
commit109ea559e75a4b99bf420b3f852e37a00a3b7bd1
tree0f6d28971ca8e045d372064fde6ae7822acac414
parent2d845f39c6103a0e9eac63948bf4ed0e6206dbb5
batman-adv: Allow to modify slaves of soft-interfaces through rntl_link

The sysfs configuration interface of batman-adv to add/remove slaves of an
soft-iface is not deadlock free and doesn't follow the currently common way to
modify slaves of an interface.

An additional configuration interface though rtnl_link is introduced which
provides easy device adding/removing with tools like "ip":
$ ip link set dev eth0 master bat0
$ ip link set dev eth0 nomaster

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c