RDMA/mlx5: Separate create QP flows to be based on type
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:07 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 28 Apr 2020 23:42:21 +0000 (20:42 -0300)
commit47c806121a515bfee3180cced40af25cbf2ac10c
tree0605d68cb53fc5081d5adbdf47620dd0b91b1a32
parent318d2b06fbaa8fbce379a4e00901251b6368b4e3
RDMA/mlx5: Separate create QP flows to be based on type

Move driver QP creation flow to separate functions to simplify
the create_qp() and allow future separation of create_qp_common()
to subtypes.

Link: https://lore.kernel.org/r/20200427154636.381474-8-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/qp.c