vxlan: setup the right link netns in newlink hdlr
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 26 Jan 2015 21:28:14 +0000 (22:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 22:20:02 +0000 (14:20 -0800)
commit33564bbb2cf1c05cf3882af5d62a0b2b4a09754c
treecff61da52b4a1e3a82ac16c8d8854431a8189b97
parent8997c27ec41127bf57421cc0205413d525421ddc
vxlan: setup the right link netns in newlink hdlr

Rename the netns to src_net to avoid confusion with the netns where the
interface stands. The user may specify IFLA_NET_NS_[PID|FD] to create
a x-netns netndevice: IFLA_NET_NS_[PID|FD] points to the netns where the
netdevice stands and src_net to the link netns.

Note that before commit f01ec1c017de ("vxlan: add x-netns support"), it was
possible to create a x-netns vxlan netdevice, but the netdevice was not
operational.

Fixes: f01ec1c017de ("vxlan: add x-netns support")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
This page took 0.02497 seconds and 5 git commands to generate.