vhost: fix slot index in async split virtqueue Tx
PATCH 1/1 vhost: fix slot index in async split virtqueue Tx
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 <[email protected]>
--- lib/vhost/virtio_net.c | 1 + 1 file changed, 1 insertion(+)
lib/vhost/virtio_net.c +1 -0
@@ -3720,6 +3720,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq, allocerr_warned = true; } dropped = true; + slot_idx--;break ; }
--
2.35.1
Quoted 24 lines · Cheng Jiang
The
slot_idxin the asynchronous Vhost split virtqueue dequeue data path is supposed to be decreased by 1 whendesc_to_mbuf()fails.Fixes 84d5204310d7 ("vhost: support async dequeue for split ring")Signed-off-by Cheng Jiang <[email protected]>--- lib/vhost/virtio_net.c | 1 + 1 file changed, 1 insertion(+)lib/vhost/virtio_net.c +1
-1@@ -3720,6 +3720,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq, allocerr_warned = true; } dropped = true; + slot_idx--;break ; } --
Quoted 2 lines
2.35.1
Reviewed-by Maxime Coquelin <[email protected]>
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 24 lines · Cheng Jiang
The
slot_idxin the asynchronous Vhost split virtqueue dequeue data path is supposed to be decreased by 1 whendesc_to_mbuf()fails.Fixes 84d5204310d7 ("vhost: support async dequeue for split ring")Signed-off-by Cheng Jiang <[email protected]>--- lib/vhost/virtio_net.c | 1 + 1 file changed, 1 insertion(+)lib/vhost/virtio_net.c +1
-1@@ -3720,6 +3720,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq, allocerr_warned = true; } dropped = true; + slot_idx--;break ; } --
Quoted 2 lines
2.35.1
Applied to dpdk-next-virtio/main.
Thanks,
Maxime