]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: correctly handle ipv6.disable module parameter
authorJiri Benc <jbenc@redhat.com>
Thu, 27 Apr 2017 19:24:35 +0000 (21:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:30:13 +0000 (22:30 -0400)
commit313b0fd0ec8616b7aeb48fee57997fe035799118
tree011a863a1a32177763ef2e4bebcc13976b0bbc42
parent1a7f3c41f455b83fcd87f4d70b00bcac2e64c476
vxlan: correctly handle ipv6.disable module parameter

When IPv6 is compiled but disabled at runtime, __vxlan_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.

Fixes: 8bc7d56f5546 ("vxlan: support both IPv4 and IPv6 sockets in a single vxlan device")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c