cm_id, cq, mr, and pd resource tracking
Status from this message: applied to iproute2-next. Thanks,
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest7 patches 4 repliesApplied
- v38 patches 2 repliesSuperseded
- v26 patches 45 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 5 patches | 10 replies | Superseded |
Changes in v4 from the cover letter
- replaced rdma_cma.h inclusion with UAPI rdma_user_cm.h
- display only device names instead of device/port for cq, mr, and pd since they are not associated with a specific port.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | rdma: update rdma_netlink.hrdma/ | +38 | 1 reply | |
| 2/7 | rdma: add UAPI rdma_user_cm.hrdma/ | +324 | 0 replies | |
| 3/7 | rdma: initialize the rd structrdma/ | +1 | 0 replies | |
| 4/7 | rdma: Add CM_ID resource tracking informationrdma/ rdma/ rdma/ | +268 | 0 replies | |
| 5/7 | rdma: Add CQ resource tracking informationrdma/ rdma/ | +154 | 0 replies | |
| 6/7 | rdma: Add MR resource tracking informationinclude/ lib/ rdma/ +1 more | +146 | 0 replies | |
| 7/7 | rdma: Add PD resource tracking informationrdma/ | +95 | 0 replies |
Reviews trailers per patch
6 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Leon Romanovsky |
|---|---|
| 1/7 | R-b |
| 2/7 | |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 iproute2-next 0/7] cm_id, cq, mr, and pd resource tracking
This series enhances the iproute2 rdma tool to include dumping of connection manager id (cm_id), completion queue (cq), memory region (mr), and protection domain (pd) rdma resources. It is the user-space part of the kernel resource tracking series merged into rdma-next for 4.17 [1] and [2].
Changes since v3:
- replaced rdma_cma.h inclusion with UAPI rdma_user_cm.h
- display only device names instead of device/port for cq, mr, and pd since they are not associated with a specific port.
Changes since v2:
- pull in rdma-core:include/rdma/rdma_cma.h
- 80 column reformat
- add reviewed-by tags
Changes since v1/RFC:
- removed RFC tag
- initialize rd properly to avoid passing a garbage port number
- revert accidental change to qp_valid_filters
- removed cm_id dev/network/transport types
- cm_id ip addrs now passed up as __kernel_sockaddr_storage
- cm_id ip address ports printed as "address:port" strings
- only parse/display memory keys and iova if available
- filter on "users" for cqs and pds
- fixed memory leaks
- removed PD_FLAGS attribute
- filter on "mrlen" for mrs
- filter on "poll-ctx" for cqs
- don't require addrs or qp_type for parsing cm_ids
- only filter optional attrs if they are present
- remove PGSIZE MR attr to match kernel
[1] https://www.spinics.net/lists/linux-rdma/msg61720.html
[2] https://www.spinics.net/lists/linux-rdma/msg62979.html
https://www.spinics.net/lists/linux-rdma/msg62980.html
---
Steve Wise (7):
rdma: update rdma_netlink.h
rdma: add UAPI rdma_user_cm.h
rdma: initialize the rd struct
rdma: Add CM_ID resource tracking information
rdma: Add CQ resource tracking information
rdma: Add MR resource tracking information
rdma: Add PD resource tracking information
include/json_writer.h | 2 + lib/json_writer.c | 11 + rdma/include/uapi/rdma/rdma_netlink.h | 38 ++ rdma/include/uapi/rdma/rdma_user_cm.h | 324 +++++++++++++++++ rdma/rdma.c | 2 +- rdma/rdma.h | 2 + rdma/res.c | 633 +++++++++++++++++++++++++++++++++- rdma/utils.c | 16 + 8 files changed, 1026 insertions(+), 2 deletions(-) create mode 100644 rdma/include/uapi/rdma/rdma_user_cm.h
Signature · 1 line
1.8.3.1