Skip to contentSkip to conversation

net/mlx5: adds the checking for Tx queue affinity

PATCH In review Jiawei Wang 2 participants 2 messages Sep 22, 2023 – Oct 9, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/mlx5/mlx5_txq.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/mlx5/mlx5_txq.c +5 -0
index 8cb52b0f7d..b584055fa8 100644
@@ -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;
Signature · 1 line
2.18.1
#1 lore raw

Hi,

Quoted 7 lines

-----Original Message-----
From: Jiawei(Jonny) Wang <[email protected]>
Sent: Friday, September 22, 2023 9:50 AM
To: Slava Ovsiienko <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>
Subject: [PATCH] net/mlx5: adds the checking for Tx queue affinity

Quoted 8 lines

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.

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh