]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: fix fill_info when using collect_metadata
authorEric Garver <e@erig.me>
Tue, 23 May 2017 22:37:27 +0000 (18:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 16:51:16 +0000 (12:51 -0400)
commit4fdb21a5d40280e2735aa839b7ed6f6499d99014
tree0d6b5c4cf7e8c7baf0d46d390fe0d464d8955ec8
parent37c2e33231343a8f6ab1c01b5f13897f9eb89304
geneve: fix fill_info when using collect_metadata

Since 9dc0552f3ee9 ("geneve: Unify LWT and netdev handling.") fill_info
does not return UDP_ZERO_CSUM6_RX when using COLLECT_METADATA. This is
because it uses ip_tunnel_info_af() with the device level info, which is
not valid for COLLECT_METADATA.

Fix by checking for the presence of the actual sockets.

Fixes: 9dc0552f3ee9 ("geneve: Unify LWT and netdev handling.")
Signed-off-by: Eric Garver <e@erig.me>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c