regex/mlx5: support timestamp format
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Sun, 14 Mar 2021 12:13:01 +0000 (12:13 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 16 Mar 2021 09:05:38 +0000 (10:05 +0100)
commitdd25bd201d18729b883acc4d4120a5e751807f5f
tree7c14b5ad3adf70ea24a8a15b17c87d9d018d1b7b
parent044423c4db97ca1911d0dcd06bc21f3fe84ed8c7
regex/mlx5: support timestamp format

This patch adds support for the timestamp format settings for
the receive and send queues. If the firmware version x.30.1000
or above is installed and the NIC timestamps are configured
with the real-time format, the default zero values for newly
added fields cause the queue creation to fail.

The patch queries the timestamp formats supported by the hardware
and sets the configuration values in queue context accordingly.

Fixes: 92f2c6a30fe0 ("regex/mlx5: add send queue")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/regex/mlx5/mlx5_regex.c
drivers/regex/mlx5/mlx5_regex.h
drivers/regex/mlx5/mlx5_regex_control.c