]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Keep batadv netdev when hardif disappears
authorSven Eckelmann <sven@narfation.org>
Sun, 10 Jul 2016 13:47:57 +0000 (15:47 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:53 +0000 (07:54 +0200)
commit73e9b175b789c27c3419ee07f5b2d161fbe77908
tree0b8ed43a173941be88841bde65bc98b77a569c84
parentc954c00c6ea83d94d7d386c0c1772be0ccc57190
batman-adv: Keep batadv netdev when hardif disappears

Switch-like virtual interfaces like bridge or openvswitch don't destroy
itself when all their attached netdevices dissappear. Instead they only
remove the link to the unregistered device and keep working until they get
removed manually.

This has the benefit that all configurations for this interfaces are kept
and daemons reacting to rtnl events can just add new slave interfaces
without going through the complete configuration of the switch-like
netdevice.

Handling unregister events of client devices similar in batman-adv allows
users to drop their current workaround of dummy netdevices attached to
batman-adv soft-interfaces.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c