OSDN Git Service

batman-adv: Don't always delete softif when last slave was removed
authorSven Eckelmann <sven@narfation.org>
Mon, 11 Feb 2013 09:10:24 +0000 (17:10 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 27 Mar 2013 09:27:32 +0000 (10:27 +0100)
commita15fd3612dd95341ad190def7faceebb41d6e346
tree1d0566e7cca7845737df1c429683bf3215d8f23f
parentb3246020e27ecc7c50cc77535936987d6eb6c869
batman-adv: Don't always delete softif when last slave was removed

batman-adv has an unusual way to manage softinterfaces. These will be created
automatically when a user writes to the batman-adv/mesh_iface file in sysfs and
removed when no slave device exists anymore.

This behaviour cannot be changed without breaking compatibility with existing
code. Instead other interfaces should be able to slightly reduce this behaviour
and provide a more common reaction to a removal of a slave interface.

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/hard-interface.h
net/batman-adv/sysfs.c