DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format
@ 2021-06-14 13:52 Viacheslav Ovsiienko
  2021-06-14 14:34 ` Matan Azrad
  2021-06-15 11:01 ` Raslan Darawsheh
  0 siblings, 2 replies; 3+ messages in thread
From: Viacheslav Ovsiienko @ 2021-06-14 13:52 UTC (permalink / raw)
  To: dev; +Cc: rasland, matan, christian.ehrhardt, xuemingl, stable

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")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
 drivers/net/mlx5/mlx5_devx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c
index 78b88f99b4..a1db53577a 100644
--- a/drivers/net/mlx5/mlx5_devx.c
+++ b/drivers/net/mlx5/mlx5_devx.c
@@ -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;
-- 
2.18.1


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

* Re: [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format
  2021-06-14 13:52 [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format Viacheslav Ovsiienko
@ 2021-06-14 14:34 ` Matan Azrad
  2021-06-15 11:01 ` Raslan Darawsheh
  1 sibling, 0 replies; 3+ messages in thread
From: Matan Azrad @ 2021-06-14 14:34 UTC (permalink / raw)
  To: Slava Ovsiienko, dev
  Cc: Raslan Darawsheh, christian.ehrhardt, Xueming(Steven) Li, stable



From: Slava Ovsiienko
> Sent: Monday, June 14, 2021 4:53 PM
> To: dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@nvidia.com>; Matan Azrad
> <matan@nvidia.com>; christian.ehrhardt@canonical.com; Xueming(Steven)
> Li <xuemingl@nvidia.com>; stable@dpdk.org
> 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.
> 
> Fixes: d61381ad46d0 ("net/mlx5: support timestamp format")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>

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

* Re: [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format
  2021-06-14 13:52 [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format Viacheslav Ovsiienko
  2021-06-14 14:34 ` Matan Azrad
@ 2021-06-15 11:01 ` Raslan Darawsheh
  1 sibling, 0 replies; 3+ messages in thread
From: Raslan Darawsheh @ 2021-06-15 11:01 UTC (permalink / raw)
  To: Slava Ovsiienko, dev
  Cc: Matan Azrad, christian.ehrhardt, Xueming(Steven) Li, stable

Hi,

> -----Original Message-----
> From: Slava Ovsiienko <viacheslavo@nvidia.com>
> Sent: Monday, June 14, 2021 4:53 PM
> To: dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@nvidia.com>; Matan Azrad
> <matan@nvidia.com>; christian.ehrhardt@canonical.com; Xueming(Steven)
> Li <xuemingl@nvidia.com>; stable@dpdk.org
> 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.
> 
> Fixes: d61381ad46d0 ("net/mlx5: support timestamp format")
> 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:[~2021-06-15 11:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 13:52 [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format Viacheslav Ovsiienko
2021-06-14 14:34 ` Matan Azrad
2021-06-15 11:01 ` 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).