]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83af45d1acb7d1a02ee68c8530ed0a76fd663289
tree65c3f8fc40165c9301e790f530874aeed5bc5054
parent5e4a87d9d7f2672591a028d28ab12962c78d47ce
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: ffaf2c1a3989 ('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