diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-10-28 13:28:15 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-08 12:42:44 -0500 |
commit | a5e14ba334e202c58e45ef47414ec94c585c1a8c (patch) | |
tree | b04bac58103e9551d2107aa96295db010c5695a2 /include/sound/max98088.h | |
parent | 533708867dd6388f643f12c87465b59e732d729d (diff) |
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>
Diffstat (limited to 'include/sound/max98088.h')
0 files changed, 0 insertions, 0 deletions