]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb945ed0adece8a49d6ecaa449a980688642653a4
treefa718bd78adfe0e8bb87e2e927d835de0ca7dd3b
parent22beaf8332d001c6477ab472f84140dcaafa1a81
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