]> git.baikalelectronics.ru Git - kernel.git/commit
net: ip6_gre: fix moving ip6gre between namespaces
authorNiko Kortstrom <niko.kortstrom@nokia.com>
Thu, 16 Jan 2020 09:43:27 +0000 (11:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 08:59:24 +0000 (09:59 +0100)
commit0761db85e89b66c33b34b63857a06a93298f5a5a
tree2c2280f670fa2d762dc7c2b672eb5d9255c9fbfe
parent3b5a714a7948f7bd165a2511e8ffb343edf92d4c
net: ip6_gre: fix moving ip6gre between namespaces

Support for moving IPv4 GRE tunnels between namespaces was added in
commit 6f3ad9f01a7e ("gre: add x-netns support"). The respective change
for IPv6 tunnels, commit 28cfb610acd3 ("ip6gre: add x-netns support")
did not drop NETIF_F_NETNS_LOCAL flag so moving them from one netns to
another is still denied in IPv6 case. Drop NETIF_F_NETNS_LOCAL flag from
ip6gre tunnels to allow moving ip6gre tunnel endpoints between network
namespaces.

Signed-off-by: Niko Kortstrom <niko.kortstrom@nokia.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c