patch 'vhost: fix net control virtqueue used length' has been queued to stable release 23.11.5

Xueming Li xuemingl at nvidia.com
Wed Jul 30 09:10:16 CEST 2025


Hi,

FYI, your patch has been queued to stable release 23.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 08/10/25. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=f8ffd901d69adcb63b22820371fcb94c33b530da

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From f8ffd901d69adcb63b22820371fcb94c33b530da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= <eperezma at redhat.com>
Date: Thu, 5 Jun 2025 13:35:34 +0200
Subject: [PATCH] vhost: fix net control virtqueue used length
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 69244dbc485d72ecf25d561ed085ecece69f6f33 ]

By the standard this is the number of bytes written.

Fixes: 474f4d7840ad ("vhost: add control virtqueue")

Signed-off-by: Eugenio Pérez <eperezma at redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 lib/vhost/virtio_net_ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vhost/virtio_net_ctrl.c b/lib/vhost/virtio_net_ctrl.c
index 355ab85009..1e75e74553 100644
--- a/lib/vhost/virtio_net_ctrl.c
+++ b/lib/vhost/virtio_net_ctrl.c
@@ -227,7 +227,7 @@ virtio_net_ctrl_push(struct virtio_net *dev, struct virtio_net_ctrl_elem *ctrl_e
 
 	used_elem = &cvq->used->ring[cvq->last_used_idx & (cvq->size - 1)];
 	used_elem->id = ctrl_elem->head_idx;
-	used_elem->len = ctrl_elem->n_descs;
+	used_elem->len = sizeof(*ctrl_elem->desc_ack);
 
 	cvq->last_used_idx++;
 
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-07-30 15:02:12.998215784 +0800
+++ 0005-vhost-fix-net-control-virtqueue-used-length.patch	2025-07-30 15:02:12.771184135 +0800
@@ -1 +1 @@
-From 69244dbc485d72ecf25d561ed085ecece69f6f33 Mon Sep 17 00:00:00 2001
+From f8ffd901d69adcb63b22820371fcb94c33b530da Mon Sep 17 00:00:00 2001
@@ -7,0 +8,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 69244dbc485d72ecf25d561ed085ecece69f6f33 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org
@@ -21 +23 @@
-index 63c0a06b4f..603a8db728 100644
+index 355ab85009..1e75e74553 100644
@@ -24 +26 @@
-@@ -229,7 +229,7 @@ virtio_net_ctrl_push(struct virtio_net *dev, struct virtio_net_ctrl_elem *ctrl_e
+@@ -227,7 +227,7 @@ virtio_net_ctrl_push(struct virtio_net *dev, struct virtio_net_ctrl_elem *ctrl_e


More information about the stable mailing list