]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Remove unused MAX HCA capabilities
authorShay Drory <shayd@nvidia.com>
Tue, 11 Jul 2023 12:56:08 +0000 (15:56 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:22 +0000 (14:40 -0700)
commita41cb59117fa12ee17cda5e5c781eecfcb15dc0f
tree380630b350b21ab5a1afb9c03bc08801cb536fa9
parent0b4eb603d635ca47c1c372f69b4b96672e4c2c05
net/mlx5: Remove unused MAX HCA capabilities

Each device cap has two modes: MAX and CUR. The driver maintains a
cache of both modes of the capabilities. For most device caps, the MAX
cap mode is never used.

Hence, remove all driver queries of the MAX mode of the said caps as
well as their helper MACROs.

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
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
include/linux/mlx5/device.h
include/linux/mlx5/driver.h