tunnels: Allow IPv6 UDP checksums to be correctly controlled.
authorJesse Gross <jesse@kernel.org>
Thu, 21 Jan 2016 00:22:47 +0000 (16:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jan 2016 19:10:40 +0000 (11:10 -0800)
commit35e2d1152b22eae99c961affbe85374bef05a775
treee7afaa7864e0ef297d1b2c24113e8bd17b04a47b
parent4f2aaf7dd95b2f82a01469049d4aee8071bcd935
tunnels: Allow IPv6 UDP checksums to be correctly controlled.

When configuring checksums on UDP tunnels, the flags are different
for IPv4 vs. IPv6 (and reversed). However, when lightweight tunnels
are enabled the flags used are always the IPv4 versions, which are
ignored in the IPv6 code paths. This uses the correct IPv6 flags, so
checksums can be controlled appropriately.

Fixes: a725e514 ("vxlan: metadata based tunneling for IPv6")
Fixes: abe492b4 ("geneve: UDP checksum configuration via netlink")
Signed-off-by: Jesse Gross <jesse@kernel.org>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
drivers/net/vxlan.c