]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ed874d65cefc5df666caf6437083bfaa53e7fe3
treeef4b55ac32650ce8e29bee9fa39cfdaa09c8e931
parente1b977dcc79e5fa84ff8ac3f3c71fe7976874c5e
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: ffaf2c1a3989 ('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