]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
IB/mlx4: Put non zero value in max_ah
authorEli Cohen <eli@mellanox.com>
Thu, 3 Jul 2014 13:39:00 +0000 (16:39 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:21 +0000 (14:45 -0700)
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 <eli@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/main.c

index 864751d91e381eea565de8983317b8911856081a..fcd2675b60ca5da39e9c762427ecc43667424acc 100644 (file)
@@ -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);