• Sven Eckelmann's avatar
    batman-adv: Keep batadv netdev when hardif disappears · 06d640c9
    Sven Eckelmann authored
    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: default avatarSven Eckelmann <sven@narfation.org>
    Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
    Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
    06d640c9
hard-interface.c 22.4 KB