Skip to content

RDMA/irdma: Refactor irdma_reg_user_mr function

Zhu Yanjun linux-rdma 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesApplied
  2. v24 patches 7 repliesSuperseded
  3. v14 patches 9 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4RDMA/irdma: Split MEM handler into irdma_reg_user_mr_type_memdrivers/infiniband/hw/irdma/verbs.c+50 -320 replies
2/4RDMA/irdma: Split mr alloc and free into new functionsdrivers/infiniband/hw/irdma/verbs.c+46 -280 replies
3/4RDMA/irdma: Split QP handler into irdma_reg_user_mr_type_qpdrivers/infiniband/hw/irdma/verbs.c+33 -140 replies
4/4RDMA/irdma: Split CQ handler into irdma_reg_user_mr_type_cqdrivers/infiniband/hw/irdma/verbs.c+40 -290 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchShiraz Saleem
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 for-next 0/4] RDMA/irdma: Refactor irdma_reg_user_mr function

V2->V3: 1) Use netdev reverse Christmas tree rule;
2) Return 0 instead of err;
3) Remove unnecessary brackets;
4) Add an error label in error handler;
5) Initialize the structured variables;

V1->V2: Thanks Saleem, Shiraz.
1) Remove the unnecessary variable initializations;
2) Get iwdev by to_iwdev;
3) Use the label free_pble to handle errors;
4) Validate the page size before rdma_umem_for_each_dma_block

Split the shared source codes into several new functions for future use. No bug fix and new feature in this commit series.

The new functions are as below:

irdma_reg_user_mr_type_mem
irdma_alloc_iwmr
irdma_free_iwmr
irdma_reg_user_mr_type_qp
irdma_reg_user_mr_type_cq

These functions will be used in the dmabuf feature.

Zhu Yanjun (4):
RDMA/irdma: Split MEM handler into irdma_reg_user_mr_type_mem RDMA/irdma: Split mr alloc and free into new functions RDMA/irdma: Split QP handler into irdma_reg_user_mr_type_qp RDMA/irdma: Split CQ handler into irdma_reg_user_mr_type_cq

 drivers/infiniband/hw/irdma/verbs.c | 270 +++++++++++++++++-----------
 1 file changed, 168 insertions(+), 102 deletions(-)
Signature · 1 line
2.27.0