mirror_iproute2/rdma
Leon Romanovsky db6d6becb0 rdma: Properly print device and link names in CLI output
The citied commit broke the CLI output and printed ifindex/ifname
instead of dev/link.

Before:
[leonro@vm ~]$ rdma res show qp
link mlx5_0/lqpn 1 type GSI state RTS sq-psn 0 comm ib_core
[leonro@vm ~]$ rdma res show cq
ifindex 0 ifname rocep0s9 cqn 0 cqe 1023 users 2 poll-ctx WORKQUEUE adaptive-moderation on comm ib_core

After:
[leonro@vm ~]$ rdma res show qp
link mlx5_0/- lqpn 1 type GSI state RTS sq-psn 0 comm [ib_core]
[leonro@vm ~]$ rdma res show cq
dev rocep0s9 cqn 0 cqe 1023 users 2 poll-ctx WORKQUEUE adaptive-moderation on comm [ib_core]

It was missed because rdmatool mostly used in JSON mode.

Fixes: b0a688a542 ("rdma: Rewrite custom JSON and prints logic to use common API")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2020-08-16 15:50:02 -07:00
..
include/uapi/rdma rdma: update uapi headers 2020-08-06 16:25:04 +00:00
.gitignore rdma: Add basic infrastructure for RDMA tool 2017-08-21 17:07:44 -07:00
dev.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
link.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
Makefile rdma: Add "stat show mr" support 2019-10-27 10:28:30 -07:00
rdma.c Merge branch 'main' into next 2020-08-06 16:21:35 +00:00
rdma.h rdma: Add support to get QP in raw format 2020-07-05 18:11:00 +00:00
res-cmid.c rdma: Add "PID" criteria support for statistic counter auto mode 2020-08-06 16:26:04 +00:00
res-cq.c rdma: Add support to get CQ in raw format 2020-07-05 18:11:33 +00:00
res-mr.c rdma: Add support to get MR in raw format 2020-07-05 18:11:37 +00:00
res-pd.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
res-qp.c rdma: Add support to get QP in raw format 2020-07-05 18:11:00 +00:00
res.c rdma: Properly print device and link names in CLI output 2020-08-16 15:50:02 -07:00
res.h rdma: Add "PID" criteria support for statistic counter auto mode 2020-08-06 16:26:04 +00:00
stat-mr.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
stat.c rdma: Add "PID" criteria support for statistic counter auto mode 2020-08-06 16:26:04 +00:00
stat.h rdma: Add "stat show mr" support 2019-10-27 10:28:30 -07:00
sys.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
utils.c rdma: Add support to get QP in raw format 2020-07-05 18:11:00 +00:00