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)
commit11387fe4a98f75d1f4cdb3efe3b42b19205c9df5
tree0d6b5c4cf7e8c7baf0d46d390fe0d464d8955ec8
parente6a88e4ba88f3dd9d772f0ff7a88837939264883
geneve: fix fill_info when using collect_metadata

Since 9b4437a5b870 ("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: 9b4437a5b870 ("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