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>
Esse commit está contido em:
@@ -980,9 +980,9 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
|
||||
opts = ip_tunnel_info_opts(info);
|
||||
|
||||
if (key->tun_flags & TUNNEL_CSUM)
|
||||
flags |= GENEVE_F_UDP_CSUM;
|
||||
flags &= ~GENEVE_F_UDP_ZERO_CSUM6_TX;
|
||||
else
|
||||
flags &= ~GENEVE_F_UDP_CSUM;
|
||||
flags |= GENEVE_F_UDP_ZERO_CSUM6_TX;
|
||||
|
||||
err = geneve6_build_skb(dst, skb, key->tun_flags, vni,
|
||||
info->options_len, opts,
|
||||
|
Referência em uma nova issue
Block a user