]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62d9d519983ec87e76119cffa4ba520dfaef2922
tree3673bbad5bf3929aa563dfa9455c2d94cc248554
parent1910d31e6c1355bc062b48542ff998cc665b02a8
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