RDMA/mlx5: Support SQD2RTS for modify QP
authorSergey Gorenko <sergeygo@nvidia.com>
Mon, 10 May 2021 10:23:32 +0000 (13:23 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 20 May 2021 14:41:07 +0000 (11:41 -0300)
commit021c1f24f002e9312ad3516f65f148299f2eb4ee
treef932d3540263fbee12ed67ac20259388e16c183e
parent620ccaaa46d1fa9e6d15d78deaa37a4228772592
RDMA/mlx5: Support SQD2RTS for modify QP

The transition of the QP state from SQD to RTS is allowed by the IB
specification. The hardware also supports that, but it is not
implemented in mlx5_ib.

This commit adds SQD2RTS command to the modify QP in mlx5_ib to support
the missing feature. The feature is required by the signature pipelining
API that will be added to rdma-core.

Link: https://lore.kernel.org/r/ab4876360bfba0e9d64a5e8599438e32e0cb351e.1620641808.git.leonro@nvidia.com
Reviewed-by: Evgenii Kochetov <evgeniik@nvidia.com>
Signed-off-by: Sergey Gorenko <sergeygo@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/qpc.c