]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf082b89f714fc98566c2461c859594fea282c265
treee7afaa7864e0ef297d1b2c24113e8bd17b04a47b
parentb9c0a6a3943da0b54b59a6c4be22b04f7c5dee09
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: f0610e6f ("vxlan: metadata based tunneling for IPv6")
Fixes: d95ef0d0 ("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