Skip to content

cm_id, cq, mr, and pd resource tracking

Steve Wise linux-rdma 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/26 patches 7 repliesIn review
  2. v1 posting 1/26 patches 1 replySuperseded

Changes in v1 from the cover letter

- move rdma_id_private into new header cma_priv.h
- fixed up code comments as suggested
- fixed RDMA_NLDEV_CMD_RES_QP_GET cut/paste error
- no BE attributes
- add cq, mr, pd resource information
- remove RFC tag

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6RDMA/CM: move rdma_id_private to cma_priv.hdrivers/infiniband/core/cma.c drivers/infiniband/core/cma_priv.h+76 -400 replies
2/6RDMA/nldev: provide detailed CM_ID informationdrivers/infiniband/core/cma.c drivers/infiniband/core/nldev.c drivers/infiniband/core/restrack.c +4 more+352 -303 replies
3/6RDMA/nldev: provide detailed CQ informationdrivers/infiniband/core/nldev.c include/uapi/rdma/rdma_netlink.h+180 -01 reply
4/6iw_cxgb4: initialize ib_mr fields for user mrsdrivers/infiniband/hw/cxgb4/mem.c+3 -00 replies
5/6RDMA/nldev: provide detailed MR informationdrivers/infiniband/core/nldev.c drivers/infiniband/core/restrack.c drivers/infiniband/core/uverbs_cmd.c +4 more+238 -122 replies
6/6RDMA/nldev: provide detailed PD informationdrivers/infiniband/core/nldev.c include/uapi/rdma/rdma_netlink.h+181 -01 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchLeon Romanovsky
1/6
2/6
3/6R-b
4/6
5/6
6/6R-b

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

Read the v1 thread

Cover letter [PATCH RESEND v1 rdma-next 0/6] cm_id, cq, mr, and pd resource tracking

NOTE: I added cq, mr, and pd resources in this series.

This series adds rdma_cm_id, ib_cq, ib_mr, and ib_pd information to the new resource tracking database. The patches are on top of Jason's merged rdma-next branch [1] plus the recent restrack fix destined for rdma-rc [2]. I'll rebase everything on rdma-next once it rebases on 4.16-rc2.

Changes since v0 RFC:

- move rdma_id_private into new header cma_priv.h
- fixed up code comments as suggested
- fixed RDMA_NLDEV_CMD_RES_QP_GET cut/paste error
- no BE attributes
- add cq, mr, pd resource information
- remove RFC tag

Thanks,

Steve.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
branch wip/for-linus-merged.

[2] https://www.spinics.net/lists/linux-rdma/msg60672.html

Steve Wise (6):
RDMA/CM: move rdma_id_private to cma_priv.h
RDMA/nldev: provide detailed CM_ID information
RDMA/nldev: provide detailed CQ information
iw_cxgb4: initialize ib_mr fields for user mrs
RDMA/nldev: provide detailed MR information
RDMA/nldev: provide detailed PD information

 drivers/infiniband/core/cma.c        |  96 ++---
 drivers/infiniband/core/cma_priv.h   |  75 ++++
 drivers/infiniband/core/nldev.c      | 811 ++++++++++++++++++++++++++++++++++-
 drivers/infiniband/core/restrack.c   |  61 ++-
 drivers/infiniband/core/ucma.c       |   8 +-
 drivers/infiniband/core/uverbs_cmd.c |   6 +
 drivers/infiniband/core/verbs.c      |   3 +
 drivers/infiniband/hw/cxgb4/mem.c    |   3 +
 include/rdma/ib_verbs.h              |   5 +
 include/rdma/rdma_cm.h               |  24 +-
 include/rdma/restrack.h              |   8 +
 include/uapi/rdma/rdma_netlink.h     |  56 +++
 12 files changed, 1052 insertions(+), 104 deletions(-)
 create mode 100644 drivers/infiniband/core/cma_priv.h
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html