net/mlx5: Query the maximum MCIA register read size from firmware
authorGal Pressman <gal@nvidia.com>
Mon, 17 Jan 2022 13:14:44 +0000 (15:14 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Mar 2022 07:38:24 +0000 (23:38 -0800)
commit271907ee2f29cd1078fd219f0778fd824fb1971c
treec1766b155eae4c5f13c491f6c8cbd8e5a2de63d6
parentfbf6836db42d013056e0a423599d8afeb5b838ac
net/mlx5: Query the maximum MCIA register read size from firmware

The MCIA register supports either 12 or 32 dwords, use the correct value
by querying the capability from the MCAM register.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/port.h