]> asedeno.scripts.mit.edu Git - linux.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)
commitbf3c5a93c52368410a521af34ed3bff91a99df44
treee8a43619c4c4682f45a93616806d8af01847ae9e
parent9d5f8c209b3f29259e6aa9595ea2dc2dfa27549a
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