From: Eli Cohen Date: Thu, 3 Jul 2014 13:39:00 +0000 (+0300) Subject: IB/mlx4: Put non zero value in max_ah X-Git-Tag: v4.1.12-92~293^2~1^2~31 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4c1da7b901a8af4af46ffbaea842acbf065fe311;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 864751d91e381..fcd2675b60ca5 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);