Skip to content

batman-adv: Add network name space support

Sven Eckelmann batman 1 version In review

Get series with b4
b4 am 3465881.llCNFeNLl4@sven-edge

Versions newest first

  1. v3 Latest6 patches 6 repliesIn review

Changes in v3 from the cover letter

- Added new system to add patches to the build (in case the build against an older kernel is not possible otherwise)
- Rearranged the retrieval of the link netns
- Rearranged the retrieval netns id for debugfs
- Fix header includes
- Add compat-include for linux/ns_common.h
- Add compat-patch for netdev->rtnl_link_ops->get_link_net
- Add compat-patch for net->ns.inum
- Fix alignment errors

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6batman-adv: Introduce compat-patches support.gitignore Makefile compat-patches/README+51 -100 replies
2/6batman-adv: NETIF_F_NETNS_LOCAL feature to prevent netns movesnet/batman-adv/soft-interface.c+1 -10 replies
3/6batman-adv: Create batman soft interfaces within correct netns.net/batman-adv/hard-interface.c net/batman-adv/hard-interface.h net/batman-adv/soft-interface.c +3 more+18 -120 replies
4/6batman-adv: Handle parent interfaces in a different netnscompat-patches/0001-get_link_net.patch net/batman-adv/hard-interface.c+68 -70 replies
5/6batman-adv: Add compatibility header for linux/ns_common.hcompat-include/linux/ns_common.h+29 -00 replies
6/6batman-adv: debugfs: Add netns supportcompat-patches/0002-ns.inum.patch net/batman-adv/debugfs.c+152 -34 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAntonio Quartulli
1/6
2/6A-b
3/6A-b
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [B.A.T.M.A.N.] [PATCH v3 0/6] batman-adv: Add network name space support

Hi,

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.

v3:

- Added new system to add patches to the build (in case the build against an older kernel is not possible otherwise)
- Rearranged the retrieval of the link netns
- Rearranged the retrieval netns id for debugfs
- Fix header includes
- Add compat-include for linux/ns_common.h
- Add compat-patch for netdev->rtnl_link_ops->get_link_net
- Add compat-patch for net->ns.inum
- Fix alignment errors

Kind regards,
Sven