linux/include/uapi/rdma
Tao Cui 5911f6d6e7 RDMA/nldev: Add resource summary max values for usage display
Add RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY_MAX netlink attribute to expose
device resource limits (max_qp, max_cq, max_mr, max_pd, max_srq) in
the resource summary alongside the existing current count. This allows
userspace tools like iproute2's rdma to display resource usage in
curr/max format.

Expected output from "rdma resource show":
  Before: 0: mlx5_0: qp 123  cq 45  mr 200  pd 10
  After:  0: mlx5_0: qp 123/131072  cq 45/65536  mr 200/1000000  pd 10/32768

In JSON output, both "curr" and "max" fields will be provided so that
scripts can compute percentages if needed.

The new attribute is optional and backward compatible - old userspace
tools will simply ignore it.

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Link: https://patch.msgid.link/20260615003646.168704-1-cui.tao@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
History 2026-07-01 13:51:13 -04:00
..
hfi treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
bnxt_re-abi.h RDMA/bnxt_re: Enable app allocated QPs 2026-05-24 12:32:21 -03:00
cxgb4-abi.h iw_cxgb4: RDMA write with immediate support 2018-08-02 20:16:02 -06:00
efa-abi.h RDMA/efa: Rename alloc_ucontext comp_mask to supported_caps 2026-03-17 07:04:03 -04:00
erdma-abi.h RDMA/erdma: Add the ABI definitions 2022-07-27 16:04:05 -03:00
hns-abi.h RDMA/hns: Support DSCP 2024-04-09 10:27:41 +03:00
ib_user_ioctl_cmds.h RDMA/uverbs: Use UMEM attributes for QP creation 2026-05-29 20:19:59 -03:00
ib_user_ioctl_verbs.h RDMA/core: Introduce generic buffer descriptor infrastructure for umem 2026-05-29 20:19:57 -03:00
ib_user_mad.h RDMA/core: Use flexible array for mad data 2021-06-22 14:05:34 -03:00
ib_user_sa.h RDMA/ucma: Support query resolved service records 2025-08-13 06:16:07 -04:00
ib_user_verbs.h RDMA/uverbs: Expose CoCo DMA bounce requirement to userspace 2026-05-29 20:27:29 -03:00
ionic-abi.h RDMA/ionic: Register device ops for control path 2025-09-11 02:18:36 -04:00
irdma-abi.h RDMA/irdma: Fix irdma_alloc_ucontext_resp padding 2025-12-16 21:38:45 -04:00
mana-abi.h RDMA/mana_ib: Take CQ type from the device type 2026-01-15 06:03:22 -05:00
mlx4-abi.h uapi: Fix SPDX tags for files referring to the 'OpenIB.org' license 2018-04-23 11:10:33 -04:00
mlx5-abi.h RDMA/mlx5: Support OOO RX WQE consumption 2024-11-04 06:57:20 -05:00
mlx5_user_ioctl_cmds.h RDMA/mlx5: Use UMEM attribute for QP doorbell record 2026-05-29 20:20:00 -03:00
mlx5_user_ioctl_verbs.h RDMA/mlx5: Add support for TLP VAR allocation 2026-03-05 05:42:01 -05:00
mthca-abi.h uapi: Fix SPDX tags for files referring to the 'OpenIB.org' license 2018-04-23 11:10:33 -04:00
ocrdma-abi.h RDMA: Change all uapi headers to use __aligned_u64 instead of __u64 2018-03-27 14:25:09 -06:00
qedr-abi.h RDMA/qedr: Add EDPM max size to alloc ucontext response 2020-07-16 16:01:55 -03:00
rdma_netlink.h RDMA/nldev: Add resource summary max values for usage display 2026-07-01 13:51:13 -04:00
rdma_user_cm.h RDMA/ucma: Fix rdma_ucm_query_ib_service_resp struct padding 2025-12-16 21:37:02 -04:00
rdma_user_ioctl.h RDMA: rdma_user_ioctl.h: fix a duplicated word + clarify 2020-07-20 16:42:08 -03:00
rdma_user_ioctl_cmds.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
rdma_user_rxe.h RDMA/rxe: Extend rxe user ABI to support flush 2022-12-09 19:36:01 -04:00
rvt-abi.h treewide: add "WITH Linux-syscall-note" to SPDX tag of uapi headers 2019-07-25 11:05:10 +02:00
siw-abi.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
vmw_pvrdma-abi.h RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-19 20:17:27 -04:00