]> git.proxmox.com Git - mirror_ovs.git/commit
datapath: backport: geneve: avoid using stale geneve socket.
authorPravin B Shelar <pshelar@ovn.org>
Sun, 30 Oct 2016 04:33:05 +0000 (21:33 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Mon, 31 Oct 2016 21:29:28 +0000 (14:29 -0700)
commit6581e587943f9c26e937df9cdf672d99e6e56f64
tree912e645b7a62e49d8d5e9fd2f642e61462c89d62
parent0b1545be1a6c4fa0624919a8774fb8777aaddc6e
datapath: backport: geneve: avoid using stale geneve socket.

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

    geneve: avoid using stale geneve socket.

    This patch is similar to earlier vxlan patch.
    Geneve device close operation frees geneve socket. This
    operation can race with geneve-xmit function which
    dereferences geneve socket. Following patch uses RCU
    mechanism to avoid this situation.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: John W. Linville <linville@tuxdriver.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/geneve.c