Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next v5 0/2] rdma: display resource limits in curr/max format
@ 2026-07-10  1:17 Tao Cui
  2026-07-10  1:17 ` [PATCH iproute2-next v5 1/2] rdma: update uapi headers Tao Cui
  2026-07-10  1:17 ` [PATCH iproute2-next v5 2/2] rdma: display resource limits in curr/max format Tao Cui
  0 siblings, 2 replies; 3+ messages in thread
From: Tao Cui @ 2026-07-10  1:17 UTC (permalink / raw)
  To: dsahern, leonro; +Cc: linux-rdma, netdev, cui.tao, cuitao

From: Tao Cui <cuitao@kylinos.cn>

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 5911f6d6e7ce [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]: 
Link: https://lore.kernel.org/all/20260615003646.168704-1-cui.tao@linux.dev/

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                            | 21 ++++++++++++++++++++-
 rdma/utils.c                          |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

---
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.
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-10  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10  1:17 [PATCH iproute2-next v5 0/2] rdma: display resource limits in curr/max format Tao Cui
2026-07-10  1:17 ` [PATCH iproute2-next v5 1/2] rdma: update uapi headers Tao Cui
2026-07-10  1:17 ` [PATCH iproute2-next v5 2/2] rdma: display resource limits in curr/max format Tao Cui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox