Skip to content

Commit

Permalink
userspace: Correct IPv6 header in software-GSO.
Browse files Browse the repository at this point in the history
Correct the length field in IPv6 packets when applying software fallback
GSO. Previosuly the field retained an IPv4 header size, which was
incorrect.

Fixes: 8b5fe2d ("userspace: Add Generic Segmentation Offloading.")
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Mike Pattrick <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
mkp-rh authored and igsilya committed Jan 17, 2024
1 parent 9e3c842 commit 76e2f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dp-packet-gso.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 76e2f20

Please sign in to comment.