]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc36456002633f3fe976e85a248afd2b6b3aa6d27
tree1d0566e7cca7845737df1c429683bf3215d8f23f
parente8c53563ae23adc5526bafbbcf230ddca41e969c
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