OpenCloudOS-Kernel/include/linux/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
..
cmd.h net/mlx4_en: Support ndo_get_vf_stats 2015-06-15 17:23:03 -07:00
cq.h net/mlx4_en: Add support for hardware accelerated 802.1ad vlan 2015-07-27 15:00:37 -07:00
device.h mlx4: Expose correct max_sge_rd limit 2015-12-08 12:42:44 -05:00
doorbell.h
driver.h net/mlx4: Postpone the registration of net_device 2015-08-30 18:12:20 -04:00
qp.h net/mlx4_core: Add support for filtering multicast loopback 2015-10-21 23:16:47 -04:00
srq.h mlx4_core: Implement SRQ object lookup from srqn 2013-04-16 22:42:55 -07:00