2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

userspace: Correct IPv6 header in software-GSO.

Correct the length field in IPv6 packets when applying software fallback
GSO. Previosuly the field retained an IPv4 header size, which was
incorrect.

Fixes: 8b5fe2dc60 ("userspace: Add Generic Segmentation Offloading.")
Acked-by: Simon Horman <horms@ovn.org>
Signed-off-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Mike Pattrick
2024-01-17 09:21:23 -05:00
committed by Ilya Maximets
parent 9e3c842d57
commit 76e2f20d53

View File

@@ -142,7 +142,7 @@ dp_packet_gso(struct dp_packet *p, struct dp_packet_batch **batches)
struct ovs_16aligned_ip6_hdr *ip6_hdr = dp_packet_l3(seg);
ip6_hdr->ip6_ctlun.ip6_un1.ip6_un1_plen
= htons(sizeof *ip_hdr + dp_packet_l4_size(seg));
= htons(dp_packet_l3_size(seg) - sizeof *ip6_hdr);
}
/* Update L4 header. */