IB/mlx5: Put non zero value in max_ah
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 27 Oct 2016 13:36:38 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:04:48 +0000 (20:04 -0500)
commit86695a6582e3b1c4895de2bde4e1022b3a8fbda0
tree65c3f8fc40165c9301e790f530874aeed5bc5054
parent578e72647ba5a77a09004606cb572f0881c34e0d
IB/mlx5: Put non zero value in max_ah

We put INT_MAX since this is the max value that can be held.
Though there is no hardware limitation, this is practically
a large enough number so we can use it.

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c