netns: enable to dump full nsid translation table
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 26 Nov 2018 14:42:06 +0000 (15:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 00:20:20 +0000 (16:20 -0800)
commit288f06a001eb6265122c620295b68a0dd53d1482
tree3673bbad5bf3929aa563dfa9455c2d94cc248554
parent3a4f68bf660414801781fd06506a9c75c2d936e5
netns: enable to dump full nsid translation table

Like the previous patch, the goal is to ease to convert nsids from one
netns to another netns.
A new attribute (NETNSA_CURRENT_NSID) is added to the kernel answer when
NETNSA_TARGET_NSID is provided, thus the user can easily convert nsids.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/net_namespace.h
net/core/net_namespace.c