]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: correctly handle ipv6.disable module parameter
authorJiri Benc <jbenc@redhat.com>
Thu, 28 Feb 2019 13:56:04 +0000 (14:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 06:07:56 +0000 (22:07 -0800)
commitebe61dc0e06628489bfad70eea8e28671bffaf6d
treea76897d21b58446116b37851a0bfbd9277396e55
parentaad0d3dc1723c560d70f7142e5f89838c6add718
geneve: correctly handle ipv6.disable module parameter

When IPv6 is compiled but disabled at runtime, geneve_sock_add returns
-EAFNOSUPPORT. For metadata based tunnels, this causes failure of the whole
operation of bringing up the tunnel.

Ignore failure of IPv6 socket creation for metadata based tunnels caused by
IPv6 not being available.

This is the same fix as what commit 313b0fd0ec86 ("vxlan: correctly handle
ipv6.disable module parameter") is doing for vxlan.

Note there's also commit 239bbb05da40 ("geneve: should not call rt6_lookup()
when ipv6 was disabled") which fixes a similar issue but for regular
tunnels, while this patch is needed for metadata based tunnels.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c