patch 'net/virtio: fix checksum offset check in Rx path' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:02:47 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/a200e54d0de618b0f6e7211858d0871302c052d7

Thanks.

Kevin

---
>From a200e54d0de618b0f6e7211858d0871302c052d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Morten=20Br=C3=B8rup?= <mb at smartsharesystems.com>
Date: Mon, 19 Oct 2026 13:56:43 +0000
Subject: [PATCH] net/virtio: fix checksum offset check in Rx path
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[ upstream commit 0a2876bc95fa826d9e8c98200b5e8856594407bc ]

Writing the checksum in the packet needs room for 2 bytes, not 1 byte.

Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload")
Fixes: 0eaf7fc2fe8e ("net/virtio: separate AVX Rx/Tx")

Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 drivers/net/virtio/virtio_rxtx.c        | 2 +-
 drivers/net/virtio/virtio_rxtx_packed.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
index edecd2011f..1afb68bc69 100644
--- a/drivers/net/virtio/virtio_rxtx.c
+++ b/drivers/net/virtio/virtio_rxtx.c
@@ -956,5 +956,5 @@ virtio_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
 				csum = ~csum;
 			off = hdr->csum_offset + hdr->csum_start;
-			if (rte_pktmbuf_data_len(m) >= off + 1)
+			if (rte_pktmbuf_data_len(m) >= off + sizeof(uint16_t))
 				*rte_pktmbuf_mtod_offset(m, uint16_t *,
 					off) = csum;
diff --git a/drivers/net/virtio/virtio_rxtx_packed.h b/drivers/net/virtio/virtio_rxtx_packed.h
index f7cc60bb51..6501ede3f0 100644
--- a/drivers/net/virtio/virtio_rxtx_packed.h
+++ b/drivers/net/virtio/virtio_rxtx_packed.h
@@ -186,5 +186,5 @@ virtio_vec_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
 				csum = ~csum;
 			off = hdr->csum_offset + hdr->csum_start;
-			if (rte_pktmbuf_data_len(m) >= off + 1)
+			if (rte_pktmbuf_data_len(m) >= off + sizeof(uint16_t))
 				*rte_pktmbuf_mtod_offset(m, uint16_t *,
 					off) = csum;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:46.079675718 +0000
+++ 0241-net-virtio-fix-checksum-offset-check-in-Rx-path.patch	2026-12-03 12:52:39.198031698 +0000
@@ -1 +1 @@
-From 0a2876bc95fa826d9e8c98200b5e8856594407bc Mon Sep 17 00:00:00 2001
+From a200e54d0de618b0f6e7211858d0871302c052d7 Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit 0a2876bc95fa826d9e8c98200b5e8856594407bc ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list