android_kernel_xiaomi_sm8450/drivers/infiniband
Mark Bloch 8b4a797e86 RDMA/mlx5: Allow creating all QPs even when non RDMA profile is used
[ Upstream commit 2614488d1f3cd5989375042286b11424208e20c8 ]

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: 42caf9cb59 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-25 09:04:12 +01:00
..
core RDMA/umem: Use ib_dma_max_seg_size instead of dma_get_max_seg_size 2021-03-17 17:06:37 +01:00
hw RDMA/mlx5: Allow creating all QPs even when non RDMA profile is used 2021-03-25 09:04:12 +01:00
sw RDMA/rxe: Fix missing kconfig dependency on CRYPTO 2021-03-09 11:11:14 +01:00
ulp RDMA/rtrs: Fix KASAN: stack-out-of-bounds bug 2021-03-25 09:04:10 +01:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00