Skip to content

Commit e9f2cd2

Browse files
wangxi11jgunthorpe
authored andcommitted
RDMA/hns: Rename QP buffer related function
Rename the function related to QP buffer to make the code more readable. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xi Wang <[email protected]> Signed-off-by: Weihang Li <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent b9c93e3 commit e9f2cd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/infiniband/hw/hns/hns_roce_qp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ static int set_user_sq_size(struct hns_roce_dev *hr_dev,
502502
return 0;
503503
}
504504

505-
static int split_wqe_buf_region(struct hns_roce_dev *hr_dev,
506-
struct hns_roce_qp *hr_qp,
507-
struct hns_roce_buf_attr *buf_attr)
505+
static int set_wqe_buf_attr(struct hns_roce_dev *hr_dev,
506+
struct hns_roce_qp *hr_qp,
507+
struct hns_roce_buf_attr *buf_attr)
508508
{
509509
int buf_size;
510510
int idx = 0;
@@ -676,7 +676,7 @@ static int alloc_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,
676676
hr_qp->rq_inl_buf.wqe_list = NULL;
677677
}
678678

679-
ret = split_wqe_buf_region(hr_dev, hr_qp, &buf_attr);
679+
ret = set_wqe_buf_attr(hr_dev, hr_qp, &buf_attr);
680680
if (ret) {
681681
ibdev_err(ibdev, "failed to split WQE buf, ret = %d.\n", ret);
682682
goto err_inline;

0 commit comments

Comments
 (0)