RDMA/mlx5: Allow creating all QPs even when non RDMA profile is used
authorMark Bloch <mbloch@nvidia.com>
Mon, 25 Jan 2021 12:07:09 +0000 (14:07 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Jan 2021 19:19:43 +0000 (15:19 -0400)
commit2614488d1f3cd5989375042286b11424208e20c8
treee6d6673f54e60ead21897ef63583adabcc92a604
parent96667052149da3855c4361925324b690c687152f
RDMA/mlx5: Allow creating all QPs even when non RDMA profile is used

The cited commit disallowed creating any QP which isn't raw ethernet, reg
umr or the special UD qp for testing WC, this proved too strict.

While modify can't be done (no GIDS/GID table for example) just creating a
QP is okay.

This patch partially reverts the bellow mentioned commit and places the
restriction at the modify QP stage and not at the creation.  DEVX commands
should be used to manipulate such QPs.

Fixes: 42caf9cb5937 ("RDMA/mlx5: Allow only raw Ethernet QPs when RoCE isn't enabled")
Link: https://lore.kernel.org/r/20210125120709.836718-1-leon@kernel.org
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
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/mlx5/qp.c