OSDN Git Service

RDMA/mlx5: Store QP type in the vendor QP structure
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:20 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 30 Apr 2020 21:45:42 +0000 (18:45 -0300)
commit7aede1a25f4b84318e8a266d7b830a5ed554e370
treeeae8831c4c86226631d3270c9ed7a50e80e5dedb
parent3ae7e66a019e18896c46fcbb7ae28bfc343331c4
RDMA/mlx5: Store QP type in the vendor QP structure

QP type is stored in the IB/core QP struct, but it doesn't have all the
needed information, like internal QP type used in the driver itself.
Update mlx5_ib to have cached QP type which includes both IBTA and
Mellanox specific one.

Such change allows us to make even further cleanup of QP creation flow.

Link: https://lore.kernel.org/r/20200427154636.381474-21-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/mlx5/qp.c