]> git.proxmox.com Git - ovs.git/commit
datapath: backport: vxlan: correctly handle ipv6.disable module parameter
authorJiri Benc <jbenc@redhat.com>
Tue, 2 May 2017 20:48:19 +0000 (13:48 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Thu, 4 May 2017 01:58:16 +0000 (18:58 -0700)
commit86e4311b06a30d5e6ee255db6057ea7f118c1f87
tree50253532700f539e6a4b86a191fc4fc7249a7cdb
parent2482b0b0c8c4ceae1f7e4620cd8620ce144e1bf3
datapath: backport: vxlan: correctly handle ipv6.disable module parameter

upstream commit:
    commit d074bf9600443403aa24fbc12c1f18eadc90f5aa
    Author: Jiri Benc <jbenc@redhat.com>
    Date:   Thu Apr 27 21:24:35 2017 +0200

    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: b1be00a6c39f ("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>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
datapath/linux/compat/vxlan.c