net/mlx5: Support devices with more than 2 ports
authorMark Bloch <mbloch@nvidia.com>
Tue, 1 Mar 2022 17:34:58 +0000 (17:34 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 May 2022 05:54:03 +0000 (22:54 -0700)
commit4cd14d44b11dabf195d1e66dadbb954336224658
treefa718bd78adfe0e8bb87e2e927d835de0ca7dd3b
parent7e978e7714d6b0ba40ee60cb23852ed888658768
net/mlx5: Support devices with more than 2 ports

Increase the define MLX5_MAX_PORTS to 4 as the driver is ready
to support NICs with 4 ports.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
include/linux/mlx5/driver.h