IB/mlx5: Support extended number of strides for Striding RQ
authorMark Zhang <markz@mellanox.com>
Fri, 15 Nov 2019 15:45:55 +0000 (17:45 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Nov 2019 20:05:41 +0000 (16:05 -0400)
commitc16339b69c0d58f456154b43fc396b1f1c3dc055
tree54d953ba52e5dd34df4f3ae41dd78d14d79aab44
parentff3195b3ed85d0068fb9a80eaa2a1471a04df76a
IB/mlx5: Support extended number of strides for Striding RQ

Extends the minimum single WQE strides from 64 to 8, which is exposed
by the "min_single_wqe_log_num_of_strides" field of striding_rq_caps.
Choose right number of strides based on FW capability.

Link: https://lore.kernel.org/r/20191115154555.247856-1-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c