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)
commit3dbd550b8b2e204833d8305451bbde990e1cd743
tree0f6d28971ca8e045d372064fde6ae7822acac414
parenta4ac28c0d06a1c22138225a228d3a4eaffe9dd77
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