Sagi Grimberg
986ef95ecd
IB/mlx5: Expose correct max_sge_rd limit
mlx5 devices (Connect-IB, ConnectX-4, ConnectX-4-LX) 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.
Cc: linux-stable@vger.kernel.org
Reported-by: Christoph Hellwig <hch@lst.de>
Tested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagig@grimberg.me>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-04-28 10:49:17 -04:00
..
2016-03-14 14:20:33 +01:00
2016-03-25 16:37:42 -07:00
2016-03-17 11:33:45 -07:00
2016-03-21 13:48:00 -07:00
2016-03-23 06:06:45 -07:00
2016-03-09 04:24:04 +00:00
2016-04-28 10:49:17 -04:00
2016-03-19 16:31:54 -07:00
2016-03-09 23:40:02 +11:00
2016-03-23 22:09:58 -04:00
2016-03-22 15:48:44 -07:00
2016-03-04 15:56:06 +00:00
2016-03-26 11:31:01 -07:00
2016-03-22 11:57:43 -07:00
2016-03-14 14:03:29 +01:00
2016-03-30 20:06:44 -07:00
2016-04-01 17:03:37 -05:00
2016-04-03 07:06:53 -05:00
2016-03-03 17:38:22 +02:00
2016-03-13 22:08:01 -04:00