OSDN Git Service

RDMA/mlx4: Separate creation of RWQ and QP
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 4 Jul 2019 13:09:35 +0000 (16:09 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 17:08:29 +0000 (14:08 -0300)
commit089b645d19b2de7c9b541828d445b8c9a5dba792
tree6ab2b236dbc6034bc75e10cf21141ab8d9146eb3
parent4f96061b92da395ecd5325a87368670e1b1a7cc9
RDMA/mlx4: Separate creation of RWQ and QP

The mlx4 WQ is implemented with HW QP without special HW object.  Current
implementation which tried to reuse the code did it with common QP
creation flows. Such decision caused to the absence of mlx4_ib_wq struct,
which is needed to ensure proper allocation of ib_wq inside of IB/core.

Separate create_qp_common() to pure QP flow and to create_rq() for RWQ.

Link: https://lore.kernel.org/r/20190704130936.8705-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/qp.c