RDMA/mlx5: Allow CQ creation without attached EQs
authorTal Gilboa <talgi@nvidia.com>
Thu, 11 Feb 2021 08:55:49 +0000 (10:55 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Feb 2021 18:42:59 +0000 (14:42 -0400)
commit7232c132d13aafd178ba18c1099b2cb98d104b8c
treeb6bffa876586ab59b02b4881eeff0bcb4ca37fb6
parente2853c49477d104c01d3c7944e1fb5074eb11d9f
RDMA/mlx5: Allow CQ creation without attached EQs

The traditional DevX CQ creation flow goes through mlx5_core_create_cq()
which checks that the given EQN corresponds to an existing EQ and attaches
a devx handler to the EQN for the CQ.

In some cases the EQ will not be a kernel EQ, but will be controlled by
modify CQ, don't block creating these just because the EQN can't be found
in the kernel.

Link: https://lore.kernel.org/r/20210211085549.1277674-1-leon@kernel.org
Signed-off-by: Tal Gilboa <talgi@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/devx.c
include/linux/mlx5/mlx5_ifc.h