Skip to contentSkip to conversation

net/mlx5: fix receiving queue timestamp format

PATCH In review Viacheslav Ovsiienko 3 participants 3 messages Jun 14, 2021 – Jun 15, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix receiving queue timestamp format

The timestamp format was not configured correctly for the receiving queues created via DevX calls. It caused non-UTC timestamps in CQEs for real time configurations.

Fixes d61381ad46d0 ("net/mlx5: support timestamp format")
---
 drivers/net/mlx5/mlx5_devx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/mlx5/mlx5_devx.c +1 -0
index 78b88f99b4..a1db53577a 100644
@@ -249,6 +249,7 @@ mlx5_rxq_create_devx_rq_resources(struct rte_eth_dev *dev, uint16_t idx)
 	rq_attr.vsd = (rxq_data->vlan_strip) ? 0 : 1;
 	rq_attr.cqn = rxq_ctrl->obj->cq_obj.cq->id;
 	rq_attr.scatter_fcs = (rxq_data->crc_present) ? 1 : 0;
+	rq_attr.ts_format = mlx5_ts_format_conv(priv->sh->rq_ts_format);
 	/* Fill WQ attributes for this RQ. */
 	if (mlx5_rxq_mprq_enabled(rxq_data)) {
 		rq_attr.wq_attr.wq_type = MLX5_WQ_TYPE_CYCLIC_STRIDING_RQ;
Signature · 1 line
2.18.1
Acked-by on v1 1/1
#1 lore raw

From: Slava Ovsiienko

Quoted 7 lines

Sent: Monday, June 14, 2021 4:53 PM
To: [email protected]
Cc: Raslan Darawsheh <[email protected]>; Matan Azrad <[email protected]>; [email protected]; Xueming(Steven) Li <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix receiving queue timestamp format

Quoted 8 lines

The timestamp format was not configured correctly for the receiving queues created via DevX calls. It caused non-UTC timestamps in CQEs for real time configurations.

Fixes d61381ad46d0 ("net/mlx5: support timestamp format")
#2 lore raw
In reply to Viacheslav Ovsiienko

Hi,

Quoted 13 lines

-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Monday, June 14, 2021 4:53 PM
To: [email protected]
Cc: Raslan Darawsheh <[email protected]>; Matan Azrad <[email protected]>; [email protected]; Xueming(Steven) Li <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix receiving queue timestamp format

The timestamp format was not configured correctly for the receiving queues created via DevX calls. It caused non-UTC timestamps in CQEs for real time configurations.

Quoted 5 lines
Fixes d61381ad46d0 ("net/mlx5: support timestamp format")

---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh