]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Fix owner name for the kernel resources
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 11 Aug 2020 07:32:00 +0000 (10:32 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 16 Aug 2020 22:50:02 +0000 (15:50 -0700)
commit7ded3c97b9836f2ae0bf21fc79d8559357acb190
tree820af89be206311535e3728a3b29bc24c184640f
parent52d767aff8632e098891479d16de204a9ec0464b
rdma: Fix owner name for the kernel resources

Owner of kernel resources is printed in different format than user
resources to easy with the reader by simply looking on the name.
The kernel owner will have "[ ]" around the name.

Before this change:
[leonro@vm ~]$ rdma res show qp
link rocep0s9/1 lqpn 1 type GSI state RTS sq-psn 58 comm ib_core

After this change:
[leonro@vm ~]$ rdma res show qp
link rocep0s9/1 lqpn 1 type GSI state RTS sq-psn 58 comm [ib_core]

Fixes: b0a688a542cd ("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>
rdma/res.c