RDMA/mlx4: Embed GSI QP into general mlx4_ib QP
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 26 Sep 2020 10:24:45 +0000 (13:24 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 29 Sep 2020 16:09:49 +0000 (13:09 -0300)
commit915ec7ed911493cea996f132d2629f44b7a1770d
treeb4e856b46bd7b09fe57503cc099d1b8f642264c3
parenteebe580feb5b8ff1322ee5f35312a9f04932c24e
RDMA/mlx4: Embed GSI QP into general mlx4_ib QP

Refactor the storage struct of mlx4 GSI QP to be embedded in mlx4_ib
QP. This allows to remove internal memory allocation of QP struct which is
hidden inside the mlx4_ib_create_qp() flow.

Link: https://lore.kernel.org/r/20200926102450.2966017-6-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c