]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Don't query MAX caps twice
authorShay Drory <shayd@nvidia.com>
Tue, 11 Jul 2023 13:32:05 +0000 (16:32 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:22 +0000 (14:40 -0700)
commitbd3a2f77809b84df5dc15edd72cf9955568e698e
treedb7ad86074a6b2e165ab8cd439e6f499cd645c2f
parenta41cb59117fa12ee17cda5e5c781eecfcb15dc0f
net/mlx5: Don't query MAX caps twice

Whenever mlx5 driver is probed or reloaded, it queries some capabilities
in MAX mode via set_hca_cap() API. Afterwards, the driver queries all
capabilities in MAX mode via mlx5_query_hca_caps() API.

Since MAX caps are read only caps, querying them twice is redundant.
Hence, delete the second query.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw.c