aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/gsi.c
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2022-03-01 15:42:01 +0000
committerSaeed Mahameed <saeedm@nvidia.com>2022-05-09 22:54:00 -0700
commit34a30d7635a8e37275a7b63bec09035ed762969b (patch)
treeead65e2f4fee0d0daea95f849b57babca89161a0 /drivers/infiniband/hw/mlx5/gsi.c
parentnet/mlx5: Increase FW pre-init timeout for health recovery (diff)
downloadlinux-dev-34a30d7635a8e37275a7b63bec09035ed762969b.tar.xz
linux-dev-34a30d7635a8e37275a7b63bec09035ed762969b.zip
net/mlx5: Lag, expose number of lag ports
Downstream patches will add support for hardware lag with more than 2 ports. Add a way for users to query the number of lag ports. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/gsi.c')
-rw-r--r--drivers/infiniband/hw/mlx5/gsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/gsi.c b/drivers/infiniband/hw/mlx5/gsi.c
index 3ad8f637c589..b804f2dd5628 100644
--- a/drivers/infiniband/hw/mlx5/gsi.c
+++ b/drivers/infiniband/hw/mlx5/gsi.c
@@ -100,7 +100,7 @@ int mlx5_ib_create_gsi(struct ib_pd *pd, struct mlx5_ib_qp *mqp,
port_type) == MLX5_CAP_PORT_TYPE_IB)
num_qps = pd->device->attrs.max_pkeys;
else if (dev->lag_active)
- num_qps = MLX5_MAX_PORTS;
+ num_qps = dev->lag_ports;
}
gsi = &mqp->gsi;