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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Nov 5 17:41:40 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/07/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/bluca/dpdk-stable

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

Thanks.

Luca Boccassi

---
>From b1e4560063f248f0645614ff8e8c97871ec6f6f8 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 b67f063b318..053ada7b3e4 100644
--- a/drivers/net/virtio/virtio_rxtx.c
+++ b/drivers/net/virtio/virtio_rxtx.c
@@ -942,7 +942,7 @@ virtio_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
 			if (likely(csum != 0xffff))
 				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 536112983c1..579f12816f4 100644
--- a/drivers/net/virtio/virtio_rxtx_packed.h
+++ b/drivers/net/virtio/virtio_rxtx_packed.h
@@ -194,7 +194,7 @@ virtio_vec_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
 			if (likely(csum != 0xffff))
 				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.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-05 16:42:45.539547151 +0000
+++ 0013-net-virtio-fix-checksum-offset-check-in-Rx-path.patch	2026-11-05 16:42:44.897060069 +0000
@@ -1 +1 @@
-From 0a2876bc95fa826d9e8c98200b5e8856594407bc Mon Sep 17 00:00:00 2001
+From b1e4560063f248f0645614ff8e8c97871ec6f6f8 Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit 0a2876bc95fa826d9e8c98200b5e8856594407bc ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index edecd2011f..1afb68bc69 100644
+index b67f063b318..053ada7b3e4 100644
@@ -26 +27 @@
-@@ -955,7 +955,7 @@ virtio_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
+@@ -942,7 +942,7 @@ virtio_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
@@ -36 +37 @@
-index f7cc60bb51..6501ede3f0 100644
+index 536112983c1..579f12816f4 100644
@@ -39 +40 @@
-@@ -185,7 +185,7 @@ virtio_vec_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)
+@@ -194,7 +194,7 @@ virtio_vec_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr)


More information about the stable mailing list