This patchset makes batman-adv network namespace aware. A soft interface can be creates in a namespace and hard interfaces added to it. soft interfaces cannot be moved between name spaces.
The biggest change is to debugfs, which is not natively netns aware, unlike sysfs which is. A new netns directory has been added and within that, a directory per network name space which batman is used within. The changes are backwards compatible, in that interfaces in the global namespace are not placed into a subdirectory.
v2:
Added missing includes Added missing forward declarations Rearranged debugfs code Fixed kernel doc Rebased on https://git.open-mesh.org/batman-adv.git master
Andrew Lunn (4): batman-adv: NETIF_F_NETNS_LOCAL feature to prevent netns moves batman-adv: Create batman soft interfaces within correct netns. batman-adv: Handle parent interfaces in a different netns batman-adv: debugfs: Add netns support
net/batman-adv/debugfs.c | 119 ++++++++++++++++++++++++++++++++++++- net/batman-adv/hard-interface.c | 36 ++++++++--- net/batman-adv/hard-interface.h | 3 +- net/batman-adv/soft-interface.c | 9 ++- net/batman-adv/soft-interface.h | 3 +- net/batman-adv/sysfs.c | 3 +- net/batman-adv/translation-table.c | 4 +- 7 files changed, 157 insertions(+), 20 deletions(-)