Skip to content

Commit de678ca

Browse files
sgoutham-marvelldavem330
authored andcommitted
octeontx2-pf: Fix TSOv6 offload
HW adds segment size to the payload length in the IPv6 header. Fix payload length to just TCP header length instead of 'TCP header size + IPv6 header size'. Fixes: 86d7476 ("octeontx2-pf: TCP segmentation offload support") Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: Ratheesh Kannoth <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cfcb942 commit de678ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,7 @@ static void otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq,
652652
htons(ext->lso_sb - skb_network_offset(skb));
653653
} else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) {
654654
ext->lso_format = pfvf->hw.lso_tsov6_idx;
655-
656-
ipv6_hdr(skb)->payload_len =
657-
htons(ext->lso_sb - skb_network_offset(skb));
655+
ipv6_hdr(skb)->payload_len = htons(tcp_hdrlen(skb));
658656
} else if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) {
659657
__be16 l3_proto = vlan_get_protocol(skb);
660658
struct udphdr *udph = udp_hdr(skb);

0 commit comments

Comments
 (0)