]> git.proxmox.com Git - mirror_iproute2.git/commit - rdma/utils.c
rdma: Add resource tracking summary
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 31 Jan 2018 08:11:53 +0000 (10:11 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Feb 2018 01:23:52 +0000 (17:23 -0800)
commit923aa825ffc02cbfb8f557fdc75a9889af883b3d
tree2f6a07daf30f53818d1ca10c3d3ae845616c8b05
parent684d82094b0e0788c5e7f0eee07d8d51375d6878
rdma: Add resource tracking summary

The global resource summary information. The object names, current utilization
and maximum numbers are received as is from the kernel.

$ rdma res
1: mlx5_0: pd 3 cq 5 qp 4
2: mlx5_1: pd 3 cq 5 qp 4
3: mlx5_2: pd 3 cq 5 qp 4
4: mlx5_3: pd 2 cq 3 qp 2
5: mlx5_4: pd 3 cq 5 qp 4

$ rdma res show mlx5_4
5: mlx5_4: pd 3 cq 5 qp 44

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/Makefile
rdma/rdma.c
rdma/rdma.h
rdma/res.c [new file with mode: 0644]
rdma/utils.c