Files
android_kernel_xiaomi_sm8450/drivers/infiniband/hw/mlx4
Sagi Grimberg a5e14ba334 mlx4: Expose correct max_sge_rd limit
mlx4 devices (ConnectX-2, ConnectX-3) has a limitation
where rdma read work queue entries cannot exceed 512 bytes.
A rdma_read wqe needs to fit in 512 bytes:
- wqe control segment (16 bytes)
- rdma segment (16 bytes)
- scatter elements (16 bytes each)

So max_sge_rd should be: (512 - 16 - 16) / 16 = 30.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-12-08 12:42:44 -05:00
..
2015-10-28 22:27:19 -04:00
2014-01-19 15:14:05 -08:00
2015-12-08 12:42:44 -05:00
2015-10-28 22:27:19 -04:00
2015-10-28 22:27:19 -04:00
2015-10-28 22:27:19 -04:00
2012-11-26 10:19:17 -08:00