1. 23 1月, 2021 2 次提交
  2. 19 1月, 2021 1 次提交
  3. 08 1月, 2021 1 次提交
  4. 12 12月, 2020 11 次提交
  5. 08 12月, 2020 2 次提交
  6. 02 12月, 2020 3 次提交
  7. 28 11月, 2020 3 次提交
  8. 27 11月, 2020 6 次提交
  9. 26 11月, 2020 3 次提交
  10. 24 11月, 2020 1 次提交
  11. 17 11月, 2020 1 次提交
  12. 13 11月, 2020 1 次提交
  13. 29 10月, 2020 3 次提交
  14. 27 10月, 2020 2 次提交
    • J
      RDMA: Remove uverbs cmds from drivers that don't use them · 628c02bf
      Jason Gunthorpe 提交于
      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.comSigned-off-by: NJason Gunthorpe <jgg@nvidia.com>
      628c02bf
    • J
      RDMA: Check create_flags during create_qp · 1f11a761
      Jason Gunthorpe 提交于
      Each driver should check that the QP attrs create_flags is supported.
      Unfortuantely when create_flags was added to the QP attrs the drivers were
      not updated. uverbs_ex_cmd_mask was used to block it - even though kernel
      drivers use these flags too.
      
      Check that flags is zero in all drivers that don't use it, remove
      IB_USER_VERBS_EX_CMD_CREATE_QP from uverbs_ex_cmd_mask. Fix the error code
      to be EOPNOTSUPP.
      
      Link: https://lore.kernel.org/r/8-v1-caa70ba3d1ab+1436e-ucmd_mask_jgg@nvidia.comSigned-off-by: NJason Gunthorpe <jgg@nvidia.com>
      1f11a761