From 4c1da7b901a8af4af46ffbaea842acbf065fe311 Mon Sep 17 00:00:00 2001 From: Eli Cohen Date: Thu, 3 Jul 2014 16:39:00 +0300 Subject: [PATCH] IB/mlx4: Put non zero value in max_ah We put INT_MAX since this is the max value the in can hold. Though hardware capability is unlimited, this is practically a large enough number so we can use it. Signed-off-by: Eli Cohen (Ported from Mellanox OFED 2.4) Signed-off-by: Mukesh Kacker --- drivers/infiniband/hw/mlx4/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 864751d91e38..fcd2675b60ca 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -229,6 +229,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * props->max_mcast_grp; props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; + props->max_ah = INT_MAX; out: kfree(in_mad); -- 2.50.1