geneve: avoid using stale geneve socket.
authorpravin shelar <pshelar@ovn.org>
Fri, 28 Oct 2016 16:59:16 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 00:56:31 +0000 (20:56 -0400)
commitfceb9c3e38252992bbf1a3028cc2f7b871211533
tree000b9e33ea52a048943fbb7c243fc461733f3ccb
parentc6fcc4fc5f8b592600c7409e769ab68da0fb1eca
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>
drivers/net/geneve.c