mirror_ubuntu-kernels/drivers/infiniband/hw/hns
Jason Gunthorpe 628c02bf38 RDMA: Remove uverbs cmds from drivers that don't use them
Allowing userspace to invoke these commands is probably going to crash
these drivers as they are not tested and not expecting to use them on a
user object.

For example pvrdma touches cq->ring_state which is not initialized for
user QPs.

These commands are effected:

- IB_USER_VERBS_CMD_REQ_NOTIFY_CQ is ibv_cmd_req_notify_cq() in
  rdma-core, only hfi1, ipath and rxe calls it.

- IB_USER_VERBS_CMD_POLL_CQ is ibv_cmd_poll_cq() in rdma-core, only
  ipath and hfi1 calls it.

- IB_USER_VERBS_CMD_POST_SEND/RECV is ibv_cmd_post_send/recv() in
  rdma-core, only ipath and hfi1 call them.

- IB_USER_VERBS_CMD_POST_SRQ_RECV is ibv_cmd_post_srq_recv() in
  rdma-core, only ipath and hfi1 calls it.

- IB_USER_VERBS_CMD_PEEK_CQ isn't even implemented anywhere

- IB_USER_VERBS_CMD_CREATE/DESTROY_AH is ibv_cmd_create/destroy_ah() in
  rdma-core, only bnxt_re, efa, hfi1, ipath, mlx5, orcrdma, and rxe call
  it.

Link: https://lore.kernel.org/r/10-v1-caa70ba3d1ab+1436e-ucmd_mask_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-26 19:28:00 -03:00
..
hns_roce_ah.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
hns_roce_alloc.c RDMA/umem: Add rdma_umem_for_each_dma_block() 2020-09-09 15:33:17 -03:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Rename the functions used inside creating cq 2019-11-25 10:31:48 -04:00
hns_roce_common.h RDMA/hns: Remove unused code about assert 2020-05-25 14:02:12 -03:00
hns_roce_cq.c RDMA: Check flags during create_cq 2020-10-26 19:27:59 -03:00
hns_roce_db.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
hns_roce_device.h RDMA/hns: Remove unused variables and definitions 2020-09-29 14:01:20 -03:00
hns_roce_hem.c RDMA/hns: Add support for SCCC in size of 64 Bytes 2020-09-24 15:35:11 -03:00
hns_roce_hem.h RDMA/hns: Change all page_shift to unsigned 2020-05-25 14:02:12 -03:00
hns_roce_hw_v1.c RDMA: Check attr_mask during modify_qp 2020-10-26 19:27:58 -03:00
hns_roce_hw_v1.h RDMA/hns: Add support for QPC in size of 512 Bytes 2020-09-24 15:35:11 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA: Check attr_mask during modify_qp 2020-10-26 19:27:58 -03:00
hns_roce_hw_v2.h RDMA/hns: Support inline data in extented sge space for RC 2020-09-24 16:06:57 -03:00
hns_roce_main.c RDMA: Remove uverbs cmds from drivers that don't use them 2020-10-26 19:28:00 -03:00
hns_roce_mr.c RDMA: Clean MW allocation and free flows 2020-09-17 14:04:32 -03:00
hns_roce_pd.c RDMA: Restore ability to fail on PD deallocate 2020-09-09 13:57:22 -03:00
hns_roce_qp.c RDMA: Check create_flags during create_qp 2020-10-26 19:27:59 -03:00
hns_roce_restrack.c RDMA: Add a dedicated CQ resource tracker function 2020-06-23 11:46:27 -03:00
hns_roce_srq.c RDMA: Check srq_type during create_srq 2020-10-26 19:27:58 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00