IB/mlx5: Fix reported max SGE calculation
authorEli Cohen <eli@mellanox.com>
Thu, 27 Oct 2016 13:36:45 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:04:48 +0000 (20:04 -0500)
commit288c01b746aab484651391ca6d64b585d3eb5ec6
treeef4b55ac32650ce8e29bee9fa39cfdaa09c8e931
parentacbda523884dcf45613bf6818d8ead5180df35c2
IB/mlx5: Fix reported max SGE calculation

Add the 512 bytes limit of RDMA READ and the size of remote
address to the max SGE calculation.

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