]> 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)
commit9e08c6393d213b74ecf74c89df9618762b1c5da8
treefa718bd78adfe0e8bb87e2e927d835de0ca7dd3b
parentf801cd3b487a5a17a044c6b5ac40b913e010e9b7
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