diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2016-11-10 11:30:58 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-11-16 20:04:48 -0500 |
commit | 731e0415b4af3a133d0316e4dc8ef0ea57dc3fdf (patch) | |
tree | f6d440a235cbbca843d6adb9500a4fcc7e1d7362 /drivers/infiniband/hw/mlx4/main.c | |
parent | befcabcd530e4ffb6f016638f693b7d94986d2ba (diff) | |
download | linux-731e0415b4af3a133d0316e4dc8ef0ea57dc3fdf.tar.gz linux-731e0415b4af3a133d0316e4dc8ef0ea57dc3fdf.tar.bz2 linux-731e0415b4af3a133d0316e4dc8ef0ea57dc3fdf.zip |
IB/mlx4: Put non zero value in max_ah device attribute
Use INT_MAX since this is the max value the attribute can hold, though
hardware capability is unlimited.
Fixes: 225c7b1feef1 ('IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index b597e8227591..05ab3cb34cb3 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -547,6 +547,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; props->hca_core_clock = dev->dev->caps.hca_core_clock * 1000UL; props->timestamp_mask = 0xFFFFFFFFFFFFULL; + props->max_ah = INT_MAX; if (!mlx4_is_slave(dev->dev)) err = mlx4_get_internal_clock_params(dev->dev, &clock_params); |