patch 'vhost: fix slot index in async split virtqueue Tx' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Sun Apr 9 17:23:24 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.11.2

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

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/a6d0c8f6aa03e6d60e416bd2301cc877fb976860

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From a6d0c8f6aa03e6d60e416bd2301cc877fb976860 Mon Sep 17 00:00:00 2001
From: Cheng Jiang <cheng1.jiang at intel.com>
Date: Thu, 23 Feb 2023 02:30:32 +0000
Subject: [PATCH] vhost: fix slot index in async split virtqueue Tx
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit baac7d2c41823060b06b8ceddb76f5cfbd17aa51 ]

The slot_idx in the asynchronous Vhost split virtqueue dequeue data path
is supposed to be decreased by 1 when desc_to_mbuf() fails.

Fixes: 84d5204310d7 ("vhost: support async dequeue for split ring")

Signed-off-by: Cheng Jiang <cheng1.jiang at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 lib/vhost/virtio_net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c
index a3dbf8cb10..26f184f8b2 100644
--- a/lib/vhost/virtio_net.c
+++ b/lib/vhost/virtio_net.c
@@ -3476,6 +3476,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq,
 				allocerr_warned = true;
 			}
 			dropped = true;
+			slot_idx--;
 			break;
 		}
 
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-04-09 21:45:39.247944400 +0800
+++ 0016-vhost-fix-slot-index-in-async-split-virtqueue-Tx.patch	2023-04-09 21:45:38.599042200 +0800
@@ -1 +1 @@
-From baac7d2c41823060b06b8ceddb76f5cfbd17aa51 Mon Sep 17 00:00:00 2001
+From a6d0c8f6aa03e6d60e416bd2301cc877fb976860 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit baac7d2c41823060b06b8ceddb76f5cfbd17aa51 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index 51dc3c96d3..be28ea5151 100644
+index a3dbf8cb10..26f184f8b2 100644
@@ -22 +24 @@
-@@ -3783,6 +3783,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq,
+@@ -3476,6 +3476,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq,


More information about the stable mailing list