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)
commita4ac28c0d06a1c22138225a228d3a4eaffe9dd77
tree22b25cf7d9ae68263b15d60f4dded639b35d93ed
parente07932ae6fb74ef707b2b27762fb0ad8aea4b55f
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