Skip to content

rdma: display resource limits in curr/max format

Tao Cui linux-rdma netdev 5 versions – Applied

Status from this message: This series was applied to iproute2/iproute2-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 0 repliesApplied
  2. v62 patches 1 replySuperseded
  3. v52 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v41 patch1 replySuperseded
v31 patch3 repliesSuperseded

Changes in v7 from the cover letter

- Drop the unnecessary intermediate buffer in res_print_summary() and pass the format string to pr_out() directly (claude review).
- Add a JSON output example to the tool commit message. Changes in v6:
- Fix the incorrect kernel commit SHA referenced in the uapi headers sync message (5911f6d6e7cc, not 5911f6d6e7ce).

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/2rdma: update uapi headersrdma/include/uapi/rdma/rdma_netlink.h+5 -00 replies
2/2rdma: display resource limits in curr/max formatrdma/res.c rdma/utils.c+16 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH iproute2-next v7 0/2] rdma: display resource limits in curr/max format

From: Tao Cui <[email protected]>

This series adds support for displaying RDMA device resource limits in curr/max format in the rdma tool, building on the kernel uapi attribute RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY_MAX which has landed in linux-next (kernel commit 5911f6d6e7cc [1]).

Patch 1 syncs the rdma_netlink.h uapi header from the kernel. Patch 2 updates the rdma tool to parse the new attribute and display resource usage in curr/max format:

  $ rdma resource show
  0: mlx5_0: qp 123/131072  cq 45/65536  mr 200/1000000  pd 10/32768

[1]:

Tao Cui (2):
rdma: update uapi headers
rdma: display resource limits in curr/max format

 rdma/include/uapi/rdma/rdma_netlink.h |  5 +++++
 rdma/res.c                            | 16 +++++++++++++++-
 rdma/utils.c                          |  1 +
 3 files changed, 21 insertions(+), 1 deletion(-)

---
Changes in v7:
- Drop the unnecessary intermediate buffer in res_print_summary() and pass the format string to pr_out() directly (claude review).
- Add a JSON output example to the tool commit message. Changes in v6:
- Fix the incorrect kernel commit SHA referenced in the uapi headers sync message (5911f6d6e7cc, not 5911f6d6e7ce).
Changes in v5:
- Split the rdma_netlink.h update into its own commit following the uapi headers sync format ("rdma: update uapi headers").
Changes in v4:
- Add a Link: reference to the kernel patch; re-send now that the kernel side has landed in linux-next.

Signature · 1 line
2.43.0