RDMA/core: Add protection for shared CQs used by ULPs
authorYamin Friedman <yaminf@mellanox.com>
Wed, 27 May 2020 08:34:52 +0000 (11:34 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 May 2020 18:40:51 +0000 (15:40 -0300)
commit3446cbd2d523fdaf37f3772082071d1154c419d9
tree205c3b7700d47311a9ebd1708dfeb039fbcfce3d
parent0b8e125e213204508e1b3c4bdfe69713280b7abd
RDMA/core: Add protection for shared CQs used by ULPs

A pre-step for adding shared CQs. Add the infrastructure to prevent shared
CQ users from altering the CQ configurations. For now all cqs are marked
as private (non-shared). The core driver should use the new force
functions to perform resize/destroy/moderation changes that are not
allowed for users of shared CQs.

Link: https://lore.kernel.org/r/1590568495-101621-2-git-send-email-yaminf@mellanox.com
Signed-off-by: Yamin Friedman <yaminf@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h