common/mlx5: fix user mode register access attribute
authorMichael Baum <michaelba@nvidia.com>
Wed, 17 Nov 2021 10:57:09 +0000 (12:57 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 17 Nov 2021 14:51:39 +0000 (15:51 +0100)
commite6a6829f9996b1cf066669ad1721b3d04552c048
treed9901a1f0a59cb8a923f28fc69008d57742c4f1c
parent421177ccd7f59ec8d898fd6aa6bc6fb9eb298a52
common/mlx5: fix user mode register access attribute

To detect the timestamp mode configured on the NIC the mlx5 PMD uses the
firmware command ACCESS_REGISTER_USER.
The HCA capability command has an attribute flag checking whether
firmware supports the command.

However, the HCA capability query command read the flag from wrong place
in PRM structure.

This patch move the flag to correct place.

Fixes: 972a1bf8120d ("common/mlx5: fix user mode register access command")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/mlx5_prm.h