IB/mlx5: Fix reported max SGE calculation
authorEli Cohen <eli@mellanox.com>
Thu, 27 Oct 2016 13:36:45 +0000 (16:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:34 +0000 (08:24 +0100)
commitdae9f4f144119229e4218f92ec0876549460ed45
tree7d54ce2aa649728a72548c500e1da0b6c2170f90
parent4db097fe49ea9dc608e614fbf46bc7463be0eb76
IB/mlx5: Fix reported max SGE calculation

commit 288c01b746aab484651391ca6d64b585d3eb5ec6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c