iproute2/rdma
Chiara Meiohas 57d7a8fd90 rdma: Add an option to display driver-specific QPs in the rdma tool
Utilize the -dd flag (driver-specific details) in the rdmatool
to view driver-specific QPs which are not exposed yet.

The following examples show mlx5 UMR QP which is visible now:

$ rdma resource show qp link ibp8s0f1
link ibp8s0f1/1 lqpn 360 type UD state RTS sq-psn 0 comm [mlx5_ib]
link ibp8s0f1/1 lqpn 0 type SMI state RTS sq-psn 0 comm [ib_core]
link ibp8s0f1/1 lqpn 1 type GSI state RTS sq-psn 0 comm [ib_core]

$ rdma resource show qp link ibp8s0f1 -dd
link ibp8s0f1/1 lqpn 360 type UD state RTS sq-psn 0 comm [mlx5_ib]
link ibp8s0f1/1 lqpn 465 type DRIVER subtype REG_UMR state RTS sq-psn 0 comm [mlx5_ib]
link ibp8s0f1/1 lqpn 0 type SMI state RTS sq-psn 0 comm [ib_core]
link ibp8s0f1/1 lqpn 1 type GSI state RTS sq-psn 0 comm [ib_core]

$ rdma resource show
0: ibp8s0f0: pd 3 cq 4 qp 3 cm_id 0 mr 0 ctx 0 srq 2
1: ibp8s0f1: pd 3 cq 4 qp 3 cm_id 0 mr 0 ctx 0 srq 2

$ rdma resource show -dd
0: ibp8s0f0: pd 3 cq 4 qp 4 cm_id 0 mr 0 ctx 0 srq 2
1: ibp8s0f1: pd 3 cq 4 qp 4 cm_id 0 mr 0 ctx 0 srq 2

Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2024-05-03 15:15:22 +00:00
..
include/uapi/rdma rdma: update uapi header 2024-05-03 15:14:55 +00:00
.gitignore rdma: Add basic infrastructure for RDMA tool 2017-08-21 17:07:44 -07:00
dev.c rdma: do not mix newline and json object 2024-01-03 16:48:33 -08:00
link.c rdma: do not mix newline and json object 2024-01-03 16:48:33 -08:00
Makefile Makefile: move HAVE_MNL check to top-level Makefile 2022-03-12 09:00:56 -07:00
rdma.c rdma: add oneline flag 2024-01-03 16:48:33 -08:00
rdma.h spelling fixes 2024-01-25 16:49:10 -08:00
res-cmid.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res-cq.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res-ctx.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res-mr.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res-pd.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res-qp.c rdma: Add an option to display driver-specific QPs in the rdma tool 2024-05-03 15:15:22 +00:00
res-srq.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
res.c rdma: Add an option to display driver-specific QPs in the rdma tool 2024-05-03 15:15:22 +00:00
res.h rdma: do not mix newline and json object 2024-01-03 16:48:33 -08:00
stat-mr.c rdma: do not mix newline and json object 2024-01-03 16:48:33 -08:00
stat.c rdma: Fix the error of accessing string variable outside the lifecycle 2024-01-08 08:45:17 -08:00
stat.h rdma: do not mix newline and json object 2024-01-03 16:48:33 -08:00
sys.c rdma: add oneline flag 2024-01-03 16:48:33 -08:00
utils.c rdma: Add an option to display driver-specific QPs in the rdma tool 2024-05-03 15:15:22 +00:00