patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] vdpa/mlx5: workaround queue stop with traffic
@ 2021-11-22 13:12 Matan Azrad
  0 siblings, 0 replies; only message in thread
From: Matan Azrad @ 2021-11-22 13:12 UTC (permalink / raw)
  To: Maxime Coquelin; +Cc: dev, stable, Xueming Li

When the event thread polls traffic and a virtq is stopping, the FW loses
synchronization in the virtq indexes.

It causes LM failure on synchronization between the HOST indexes to
the GUEST indexes.

Unset the event thread before the queue stop in the LM process.

Fixes: 31b9c29c86af ("vdpa/mlx5: support close and config operations")

Signed-off-by: Matan Azrad <>
Acked-by: Xueming Li <>
 drivers/vdpa/mlx5/mlx5_vdpa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c
index b9e84dd9bf..8dfaba791d 100644
--- a/drivers/vdpa/mlx5/mlx5_vdpa.c
+++ b/drivers/vdpa/mlx5/mlx5_vdpa.c
@@ -250,10 +250,10 @@ mlx5_vdpa_dev_close(int vid)
 		DRV_LOG(ERR, "Invalid vDPA device: %s.", vdev->device->name);
 		return -1;
-	if (priv->configured)
-		ret |= mlx5_vdpa_lm_log(priv);
+	if (priv->configured)
+		ret |= mlx5_vdpa_lm_log(priv);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-22 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 13:12 [PATCH] vdpa/mlx5: workaround queue stop with traffic Matan Azrad

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone