mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
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
|
|
|---|---|---|
| .. | ||
| hfi | ||
| bnxt_re-abi.h | ||
| cxgb4-abi.h | ||
| efa-abi.h | ||
| erdma-abi.h | ||
| hns-abi.h | ||
| ib_user_ioctl_cmds.h | ||
| ib_user_ioctl_verbs.h | ||
| ib_user_mad.h | ||
| ib_user_sa.h | ||
| ib_user_verbs.h | ||
| ionic-abi.h | ||
| irdma-abi.h | ||
| mana-abi.h | ||
| mlx4-abi.h | ||
| mlx5-abi.h | ||
| mlx5_user_ioctl_cmds.h | ||
| mlx5_user_ioctl_verbs.h | ||
| mthca-abi.h | ||
| ocrdma-abi.h | ||
| qedr-abi.h | ||
| rdma_netlink.h | ||
| rdma_user_cm.h | ||
| rdma_user_ioctl.h | ||
| rdma_user_ioctl_cmds.h | ||
| rdma_user_rxe.h | ||
| rvt-abi.h | ||
| siw-abi.h | ||
| vmw_pvrdma-abi.h | ||