]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Allow to use rntl_link for device creation/deletion
authorSven Eckelmann <sven@narfation.org>
Mon, 11 Feb 2013 09:10:26 +0000 (17:10 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 27 Mar 2013 09:27:34 +0000 (10:27 +0100)
commit2d845f39c6103a0e9eac63948bf4ed0e6206dbb5
tree22b25cf7d9ae68263b15d60f4dded639b35d93ed
parent6c20455b4af7d65d88dd8f0b696f043382621372
batman-adv: Allow to use rntl_link for device creation/deletion

The sysfs configuration interface of batman-adv to add/remove soft-interfaces
is not deadlock free and doesn't follow the currently common way to create new
virtual interfaces.

An additional interface though rtnl_link is introduced which provides easy device
creation/deletion with tools like "ip":

$ ip link add dev bat0 type batadv
$ ip link del dev bat0

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