DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: adds the checking for Tx queue affinity
@ 2023-09-22  6:50 Jiawei Wang
  2023-10-09  8:59 ` Raslan Darawsheh
  0 siblings, 1 reply; 2+ messages in thread
From: Jiawei Wang @ 2023-09-22  6:50 UTC (permalink / raw)
  To: viacheslavo; +Cc: dev, rasland

MLX5 PMD updates the TIS index based on the tx queue affinity,
and creates the DevX SQ object with updated the TIS index.

This patch adds the checking that set the affinity per Tx Queue
if HW objects can be created by DevX.

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
 drivers/net/mlx5/mlx5_txq.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index 8cb52b0f7d..b584055fa8 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -1381,6 +1381,11 @@ int mlx5_map_aggr_tx_affinity(struct rte_eth_dev *dev, uint16_t tx_queue_id,
 	struct mlx5_priv *priv;
 
 	priv = dev->data->dev_private;
+	if (!mlx5_devx_obj_ops_en(priv->sh)) {
+		DRV_LOG(ERR, "Tx affinity mapping isn't supported by Verbs API.");
+		rte_errno = ENOTSUP;
+		return -rte_errno;
+	}
 	txq = (*priv->txqs)[tx_queue_id];
 	if (!txq)
 		return -1;
-- 
2.18.1


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

* RE: [PATCH] net/mlx5: adds the checking for Tx queue affinity
  2023-09-22  6:50 [PATCH] net/mlx5: adds the checking for Tx queue affinity Jiawei Wang
@ 2023-10-09  8:59 ` Raslan Darawsheh
  0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2023-10-09  8:59 UTC (permalink / raw)
  To: Jiawei(Jonny) Wang, Slava Ovsiienko; +Cc: dev

Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw@nvidia.com>
> Sent: Friday, September 22, 2023 9:50 AM
> To: Slava Ovsiienko <viacheslavo@nvidia.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
> Subject: [PATCH] net/mlx5: adds the checking for Tx queue affinity
> 
> MLX5 PMD updates the TIS index based on the tx queue affinity, and creates
> the DevX SQ object with updated the TIS index.
> 
> This patch adds the checking that set the affinity per Tx Queue if HW objects
> can be created by DevX.
> 
> Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

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

end of thread, other threads:[~2023-10-09  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22  6:50 [PATCH] net/mlx5: adds the checking for Tx queue affinity Jiawei Wang
2023-10-09  8:59 ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).