]> git.ipfire.org Git - thirdparty/iproute2.git/commit
rdma: Add context resource tracking information
authorNeta Ostrovsky <netao@nvidia.com>
Sun, 25 Apr 2021 11:53:21 +0000 (14:53 +0300)
committerDavid Ahern <dsahern@kernel.org>
Wed, 28 Apr 2021 15:36:59 +0000 (15:36 +0000)
commit42789412856ec04129af2ddaebe31ba5f9fecea4
tree2d7aa5d4ae95d3a08ef13c1b39a5c1e7618bf77c
parent4c61b5b9dfd38792c0cef898f738b650f087b995
rdma: Add context resource tracking information

Sample output:

$ rdma res show ctx
dev ibp8s0f0 ctxn 0 pid 980 comm ibv_rc_pingpong
dev ibp8s0f0 ctxn 1 pid 981 comm ibv_rc_pingpong
dev ibp8s0f0 ctxn 2 pid 992 comm ibv_rc_pingpong
dev ibp8s0f1 ctxn 0 pid 984 comm ibv_rc_pingpong
dev ibp8s0f1 ctxn 1 pid 987 comm ibv_rc_pingpong

$ rdma res show ctx dev ibp8s0f1
dev ibp8s0f1 ctxn 0 pid 984 comm ibv_rc_pingpong
dev ibp8s0f1 ctxn 1 pid 987 comm ibv_rc_pingpong

Reviewed-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Ido Kalir <idok@nvidia.com>
Signed-off-by: Neta Ostrovsky <netao@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/rdma-resource.8
rdma/Makefile
rdma/res-ctx.c [new file with mode: 0644]
rdma/res.c
rdma/res.h
rdma/utils.c