Date: Thu, 20 Mar 2025 03:14:05 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 7ebbf9f756e7 - stable/14 - mlx5_en: correct recalculation of the ipv4 checksum for hw lro packet Message-ID: <202503200314.52K3E5a0086256@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7ebbf9f756e742a4859da6233b243adb4f6612ad commit 7ebbf9f756e742a4859da6233b243adb4f6612ad Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-02-11 15:43:21 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-03-20 03:13:37 +0000 mlx5_en: correct recalculation of the ipv4 checksum for hw lro packet (cherry picked from commit dd1bd0ec5c91c21f1f60bb8bc58b2f5e794df43f) --- sys/dev/mlx5/mlx5_en/mlx5_en_rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c index b52dee102a3d..73ac24f55f45 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c @@ -199,7 +199,8 @@ mlx5e_lro_update_hdr(struct mbuf *mb, struct mlx5_cqe64 *cqe) ip4->ip_ttl = cqe->lro_min_ttl; ip4->ip_len = cpu_to_be16(tot_len); ip4->ip_sum = 0; - ip4->ip_sum = in_cksum(mb, ip4->ip_hl << 2); + ip4->ip_sum = in_cksum_skip(mb, (ip4->ip_hl << 2) + + ETHER_HDR_LEN, ETHER_HDR_LEN); } else { ip6->ip6_hlim = cqe->lro_min_ttl; ip6->ip6_plen = cpu_to_be16(tot_len -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202503200314.52K3E5a0086256>