]> git.proxmox.com Git - ovs.git/commit
datapath: backport: vxlan: avoid using stale vxlan socket.
authorPravin B Shelar <pshelar@ovn.org>
Mon, 31 Oct 2016 21:36:32 +0000 (14:36 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Tue, 1 Nov 2016 05:02:36 +0000 (22:02 -0700)
commit76e671eade402048c8050f383f72fd71e977f83b
treef7e6b9b070c38847e0b99c9f8ac0c60392746bb0
parent26e9994b0337995116052976591a1192b804b341
datapath: backport: vxlan: avoid using stale vxlan socket.

Upstream commit:
    commit c6fcc4fc5f8b592600c7409e769ab68da0fb1eca
    Author: pravin shelar <pshelar@ovn.org>
    Date:   Fri Oct 28 09:59:15 2016 -0700

    vxlan: avoid using stale vxlan socket.

    When vxlan device is closed vxlan socket is freed. This
    operation can race with vxlan-xmit function which
    dereferences vxlan socket. Following patch uses RCU
    mechanism to avoid this situation.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
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/include/net/vxlan.h
datapath/linux/compat/vxlan.c