mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
RDMA: Clarify that CQ resize is a user‑space verb
The CQ resize operation is used only by uverbs. Make this explicit. Link: https://patch.msgid.link/20260318-resize_cq-type-v1-2-b2846ed18846@nvidia.com Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
This commit is contained in:
parent
6c45efd8f9
commit
ce68351be0
|
|
@ -2832,7 +2832,7 @@ void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)
|
|||
SET_DEVICE_OP(dev_ops, reg_user_mr_dmabuf);
|
||||
SET_DEVICE_OP(dev_ops, req_notify_cq);
|
||||
SET_DEVICE_OP(dev_ops, rereg_user_mr);
|
||||
SET_DEVICE_OP(dev_ops, resize_cq);
|
||||
SET_DEVICE_OP(dev_ops, resize_user_cq);
|
||||
SET_DEVICE_OP(dev_ops, set_vf_guid);
|
||||
SET_DEVICE_OP(dev_ops, set_vf_link_state);
|
||||
SET_DEVICE_OP(dev_ops, ufile_hw_cleanup);
|
||||
|
|
|
|||
|
|
@ -1142,7 +1142,7 @@ static int ib_uverbs_resize_cq(struct uverbs_attr_bundle *attrs)
|
|||
if (IS_ERR(cq))
|
||||
return PTR_ERR(cq);
|
||||
|
||||
ret = cq->device->ops.resize_cq(cq, cmd.cqe, &attrs->driver_udata);
|
||||
ret = cq->device->ops.resize_user_cq(cq, cmd.cqe, &attrs->driver_udata);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
@ -3801,7 +3801,7 @@ const struct uapi_definition uverbs_def_write_intf[] = {
|
|||
UAPI_DEF_WRITE_UDATA_IO(
|
||||
struct ib_uverbs_resize_cq,
|
||||
struct ib_uverbs_resize_cq_resp),
|
||||
UAPI_DEF_METHOD_NEEDS_FN(resize_cq)),
|
||||
UAPI_DEF_METHOD_NEEDS_FN(resize_user_cq)),
|
||||
DECLARE_UVERBS_WRITE_EX(
|
||||
IB_USER_VERBS_EX_CMD_CREATE_CQ,
|
||||
ib_uverbs_ex_create_cq,
|
||||
|
|
|
|||
|
|
@ -1374,7 +1374,7 @@ static const struct ib_device_ops bnxt_re_dev_ops = {
|
|||
.reg_user_mr = bnxt_re_reg_user_mr,
|
||||
.reg_user_mr_dmabuf = bnxt_re_reg_user_mr_dmabuf,
|
||||
.req_notify_cq = bnxt_re_req_notify_cq,
|
||||
.resize_cq = bnxt_re_resize_cq,
|
||||
.resize_user_cq = bnxt_re_resize_cq,
|
||||
.create_flow = bnxt_re_create_flow,
|
||||
.destroy_flow = bnxt_re_destroy_flow,
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, bnxt_re_ah, ib_ah),
|
||||
|
|
|
|||
|
|
@ -5461,7 +5461,7 @@ static const struct ib_device_ops irdma_dev_ops = {
|
|||
.reg_user_mr_dmabuf = irdma_reg_user_mr_dmabuf,
|
||||
.rereg_user_mr = irdma_rereg_user_mr,
|
||||
.req_notify_cq = irdma_req_notify_cq,
|
||||
.resize_cq = irdma_resize_cq,
|
||||
.resize_user_cq = irdma_resize_cq,
|
||||
INIT_RDMA_OBJ_SIZE(ib_pd, irdma_pd, ibpd),
|
||||
INIT_RDMA_OBJ_SIZE(ib_ucontext, irdma_ucontext, ibucontext),
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, irdma_ah, ibah),
|
||||
|
|
|
|||
|
|
@ -2568,7 +2568,7 @@ static const struct ib_device_ops mlx4_ib_dev_ops = {
|
|||
.reg_user_mr = mlx4_ib_reg_user_mr,
|
||||
.req_notify_cq = mlx4_ib_arm_cq,
|
||||
.rereg_user_mr = mlx4_ib_rereg_user_mr,
|
||||
.resize_cq = mlx4_ib_resize_cq,
|
||||
.resize_user_cq = mlx4_ib_resize_cq,
|
||||
.report_port_event = mlx4_ib_port_event,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, mlx4_ib_ah, ibah),
|
||||
|
|
|
|||
|
|
@ -4612,7 +4612,7 @@ static const struct ib_device_ops mlx5_ib_dev_ops = {
|
|||
.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,
|
||||
.req_notify_cq = mlx5_ib_arm_cq,
|
||||
.rereg_user_mr = mlx5_ib_rereg_user_mr,
|
||||
.resize_cq = mlx5_ib_resize_cq,
|
||||
.resize_user_cq = mlx5_ib_resize_cq,
|
||||
.ufile_hw_cleanup = mlx5_ib_ufile_hw_cleanup,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, mlx5_ib_ah, ibah),
|
||||
|
|
|
|||
|
|
@ -1096,7 +1096,7 @@ static const struct ib_device_ops mthca_dev_ops = {
|
|||
.query_port = mthca_query_port,
|
||||
.query_qp = mthca_query_qp,
|
||||
.reg_user_mr = mthca_reg_user_mr,
|
||||
.resize_cq = mthca_resize_cq,
|
||||
.resize_user_cq = mthca_resize_cq,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, mthca_ah, ibah),
|
||||
INIT_RDMA_OBJ_SIZE(ib_cq, mthca_cq, ibcq),
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ static const struct ib_device_ops ocrdma_dev_ops = {
|
|||
.query_qp = ocrdma_query_qp,
|
||||
.reg_user_mr = ocrdma_reg_user_mr,
|
||||
.req_notify_cq = ocrdma_arm_cq,
|
||||
.resize_cq = ocrdma_resize_cq,
|
||||
.resize_user_cq = ocrdma_resize_cq,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, ocrdma_ah, ibah),
|
||||
INIT_RDMA_OBJ_SIZE(ib_cq, ocrdma_cq, ibcq),
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ static const struct ib_device_ops rvt_dev_ops = {
|
|||
.query_srq = rvt_query_srq,
|
||||
.reg_user_mr = rvt_reg_user_mr,
|
||||
.req_notify_cq = rvt_req_notify_cq,
|
||||
.resize_cq = rvt_resize_cq,
|
||||
.resize_user_cq = rvt_resize_cq,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, rvt_ah, ibah),
|
||||
INIT_RDMA_OBJ_SIZE(ib_cq, rvt_cq, ibcq),
|
||||
|
|
|
|||
|
|
@ -1519,7 +1519,7 @@ static const struct ib_device_ops rxe_dev_ops = {
|
|||
.reg_user_mr = rxe_reg_user_mr,
|
||||
.req_notify_cq = rxe_req_notify_cq,
|
||||
.rereg_user_mr = rxe_rereg_user_mr,
|
||||
.resize_cq = rxe_resize_cq,
|
||||
.resize_user_cq = rxe_resize_cq,
|
||||
|
||||
INIT_RDMA_OBJ_SIZE(ib_ah, rxe_ah, ibah),
|
||||
INIT_RDMA_OBJ_SIZE(ib_cq, rxe_cq, ibcq),
|
||||
|
|
|
|||
|
|
@ -2634,7 +2634,8 @@ struct ib_device_ops {
|
|||
struct uverbs_attr_bundle *attrs);
|
||||
int (*modify_cq)(struct ib_cq *cq, u16 cq_count, u16 cq_period);
|
||||
int (*destroy_cq)(struct ib_cq *cq, struct ib_udata *udata);
|
||||
int (*resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata);
|
||||
int (*resize_user_cq)(struct ib_cq *cq, int cqe,
|
||||
struct ib_udata *udata);
|
||||
/*
|
||||
* pre_destroy_cq - Prevent a cq from generating any new work
|
||||
* completions, but not free any kernel resources
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user