geneve: fix fill_info when link down
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 15 Nov 2017 01:43:09 +0000 (09:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Nov 2017 10:47:11 +0000 (19:47 +0900)
commitfd7eafd02121d6ef501ef1a4a891e6061366c952
treeac2067caaf6b41aaee8005c6bd04e3f8e56b37f2
parent89ad2fa3f043a1e8daae193bcb5fe34d5f8caf28
geneve: fix fill_info when link down

geneve->sock4/6 were added with geneve_open and released with geneve_stop.
So when geneve link down, we will not able to show remote address and
checksum info after commit 11387fe4a98 ("geneve: fix fill_info when using
collect_metadata").

Fix this by avoid passing *_REMOTE{,6} for COLLECT_METADATA since they are
mutually exclusive, and always show UDP_ZERO_CSUM6_RX info.

Fixes: 11387fe4a98 ("geneve: fix fill_info when using collect_metadata")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c