crypto/mlx5: fix timestamp format configuration
authorMichael Baum <michaelba@nvidia.com>
Sun, 5 Sep 2021 08:04:15 +0000 (11:04 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Mon, 6 Sep 2021 19:46:34 +0000 (21:46 +0200)
commit460756f95b9092e60dd6d0e2e69774380618954b
tree11292ff0c74d833ee6aad91ef824bf68f4eb4b23
parentcaf9ca4718914c1af41b4ae1b6aaaaf14a29f70e
crypto/mlx5: fix timestamp format configuration

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: 6152534e211e ("crypto/mlx5: support queue pairs operations")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/crypto/mlx5/mlx5_crypto.c
drivers/crypto/mlx5/mlx5_crypto.h