]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c4aed0bcf0b7d2b5ace54b72456643f2cebc875
treeeae8831c4c86226631d3270c9ed7a50e80e5dedb
parent68d8cb388a8175c4e3fbe6126aef6778eba3d0e9
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