public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix send skew settings when using wait on time
@ 2026-03-20 11:14 Viacheslav Ovsiienko
  2026-03-23 10:10 ` Dariusz Sosnowski
  2026-03-24 12:29 ` Raslan Darawsheh
  0 siblings, 2 replies; 3+ messages in thread
From: Viacheslav Ovsiienko @ 2026-03-20 11:14 UTC (permalink / raw)
  To: dev; +Cc: rasland, matan, suanmingm, dsosnowski, stable

There are two modes to support tx send scheduling in mlx5 drivers,
using the Clock Queue and tx_pp parameter, and using the wait_on_time
hardware capability. The tx_skew devarg is applicable for both, but
in case of tx_pp=0 (that supposes wait_on_time mode is engaged
on ConnectX-7 and above), the tx_skew setting was missed (as
mlx5_txpp_create was not invoked).

Fixes: 2f5122dfc41f ("net/mlx5: configure Tx queue with send on time offload")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
 drivers/net/mlx5/mlx5.c      | 2 ++
 drivers/net/mlx5/mlx5_txpp.c | 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index f5784761f9..b70792d77c 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1906,6 +1906,8 @@ mlx5_alloc_shared_dev_ctx(const struct mlx5_dev_spawn_data *spawn,
 			strerror(rte_errno));
 		goto error;
 	}
+	/* Used on Tx send scheduling (tx_pp=1 or wait-on-time). */
+	sh->txpp.skew = sh->config.tx_skew;
 	sh->refcnt = 1;
 	sh->max_port = spawn->max_port;
 	strncpy(sh->ibdev_name, mlx5_os_get_ctx_device_name(sh->cdev->ctx),
diff --git a/drivers/net/mlx5/mlx5_txpp.c b/drivers/net/mlx5/mlx5_txpp.c
index 756a772cc5..a8cfe233d6 100644
--- a/drivers/net/mlx5/mlx5_txpp.c
+++ b/drivers/net/mlx5/mlx5_txpp.c
@@ -908,7 +908,6 @@ mlx5_txpp_create(struct mlx5_dev_ctx_shared *sh)
 	/* Store the requested pacing parameters. */
 	sh->txpp.tick = tx_pp >= 0 ? tx_pp : -tx_pp;
 	sh->txpp.test = !!(tx_pp < 0);
-	sh->txpp.skew = sh->config.tx_skew;
 	sh->txpp.freq = sh->cdev->config.hca_attr.dev_freq_khz;
 	ret = mlx5_txpp_create_event_channel(sh);
 	if (ret)
@@ -934,7 +933,6 @@ mlx5_txpp_create(struct mlx5_dev_ctx_shared *sh)
 		mlx5_txpp_destroy_event_channel(sh);
 		sh->txpp.tick = 0;
 		sh->txpp.test = 0;
-		sh->txpp.skew = 0;
 	}
 	return ret;
 }
@@ -956,7 +954,6 @@ mlx5_txpp_destroy(struct mlx5_dev_ctx_shared *sh)
 	mlx5_txpp_destroy_event_channel(sh);
 	sh->txpp.tick = 0;
 	sh->txpp.test = 0;
-	sh->txpp.skew = 0;
 }
 
 /**
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/mlx5: fix send skew settings when using wait on time
  2026-03-20 11:14 [PATCH] net/mlx5: fix send skew settings when using wait on time Viacheslav Ovsiienko
@ 2026-03-23 10:10 ` Dariusz Sosnowski
  2026-03-24 12:29 ` Raslan Darawsheh
  1 sibling, 0 replies; 3+ messages in thread
From: Dariusz Sosnowski @ 2026-03-23 10:10 UTC (permalink / raw)
  To: Viacheslav Ovsiienko; +Cc: dev, rasland, matan, suanmingm, stable

On Fri, Mar 20, 2026 at 01:14:10PM +0200, Viacheslav Ovsiienko wrote:
> There are two modes to support tx send scheduling in mlx5 drivers,
> using the Clock Queue and tx_pp parameter, and using the wait_on_time
> hardware capability. The tx_skew devarg is applicable for both, but
> in case of tx_pp=0 (that supposes wait_on_time mode is engaged
> on ConnectX-7 and above), the tx_skew setting was missed (as
> mlx5_txpp_create was not invoked).
> 
> Fixes: 2f5122dfc41f ("net/mlx5: configure Tx queue with send on time offload")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>

Best regards,
Dariusz Sosnowski

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/mlx5: fix send skew settings when using wait on time
  2026-03-20 11:14 [PATCH] net/mlx5: fix send skew settings when using wait on time Viacheslav Ovsiienko
  2026-03-23 10:10 ` Dariusz Sosnowski
@ 2026-03-24 12:29 ` Raslan Darawsheh
  1 sibling, 0 replies; 3+ messages in thread
From: Raslan Darawsheh @ 2026-03-24 12:29 UTC (permalink / raw)
  To: Viacheslav Ovsiienko, dev; +Cc: matan, suanmingm, dsosnowski, stable

Hi,


On 20/03/2026 1:14 PM, Viacheslav Ovsiienko wrote:
> There are two modes to support tx send scheduling in mlx5 drivers,
> using the Clock Queue and tx_pp parameter, and using the wait_on_time
> hardware capability. The tx_skew devarg is applicable for both, but
> in case of tx_pp=0 (that supposes wait_on_time mode is engaged
> on ConnectX-7 and above), the tx_skew setting was missed (as
> mlx5_txpp_create was not invoked).
> 
> Fixes: 2f5122dfc41f ("net/mlx5: configure Tx queue with send on time offload")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-24 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 11:14 [PATCH] net/mlx5: fix send skew settings when using wait on time Viacheslav Ovsiienko
2026-03-23 10:10 ` Dariusz Sosnowski
2026-03-24 12:29 ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox