]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
geneve: only configure or fill UDP_ZERO_CSUM6_RX/TX info when CONFIG_IPV6
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 23 Nov 2017 03:27:24 +0000 (11:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Nov 2017 18:29:22 +0000 (03:29 +0900)
commitf9094b7603c011d27db7ba109e69881c72fa611d
tree47e91033a8f61886900324f7ff8ad275d37bd565
parentd6efab626c886acd070d9aabe39bc61e8c5a75f7
geneve: only configure or fill UDP_ZERO_CSUM6_RX/TX info when CONFIG_IPV6

Stefano pointed that configure or show UDP_ZERO_CSUM6_RX/TX info doesn't
make sense if we haven't enabled CONFIG_IPV6. Fix it by adding
if IS_ENABLED(CONFIG_IPV6) check.

Fixes: abe492b4f50c ("geneve: UDP checksum configuration via netlink")
Fixes: fd7eafd02121 ("geneve: fix fill_info when link down")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c