linux/drivers/infiniband/sw
Jason Gunthorpe 1c407cb5d7 RDMA: Check flags during create_cq
Each driver should check that the CQ attrs is supported. Unfortuantely
when flags was added to the CQ attrs the drivers were not updated,
uverbs_ex_cmd_mask was used to block it. This was missed when create CQ
was converted to ioctl, so non-zero flags could have been passed into
drivers.

Check that flags is zero in all drivers that don't use it, remove
IB_USER_VERBS_EX_CMD_CREATE_CQ from uverbs_ex_cmd_mask.

Fixes: 41b2a71fc8 ("IB/uverbs: Move ioctl path of create_cq and destroy_cq to a new file")
Link: https://lore.kernel.org/r/7-v1-caa70ba3d1ab+1436e-ucmd_mask_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-26 19:27:59 -03:00
..
rdmavt RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
rxe RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
siw RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00