]> 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)
commit0f76c17a87540eed220d6d04a769f216cc2f063c
tree0d6b5c4cf7e8c7baf0d46d390fe0d464d8955ec8
parentd7d57cd215b052f7898ea6633f347d4529d506a7
geneve: fix fill_info when using collect_metadata

Since 25e13753220d ("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: 25e13753220d ("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