]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/nldev: Provide global resource utilization
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 28 Jan 2018 09:17:24 +0000 (11:17 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 30 Jan 2018 03:21:40 +0000 (20:21 -0700)
commit5aed05134ac77e0b8b47a243797a60e20211b637
treee8a43619c4c4682f45a93616806d8af01847ae9e
parent8128abebb267da34cd02a2e95e84c67812f80b89
RDMA/nldev: Provide global resource utilization

Expose through the netlink interface the global per-device utilization of
the supported object types.

Provide both dumpit and doit callbacks.

As an example of possible output from rdmatool for system with 5
mlx5 cards:

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

Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h