RE: [PATCH rdma-next v3 6/7] RDMA/nldev: Provide global resource utilization

Steve Wise
2018-01-11T19:41:51Z

> From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>
> Export through netlink interface, the global device utilization
> for the rdmatool as the main user of RDMA nldev interface.
>
> Provide both dumpit and doit callbacks.
>
> As an example of possible output from rdmatool for system with 5
> Mellanox's card
>
> $ rdma res
> 1: mlx5_0: curr/max: qp 4/262144 cq 5/16777216 pd 3/16777216
> 2: mlx5_1: curr/max: qp 4/262144 cq 5/16777216 pd 3/16777216
> 3: mlx5_2: curr/max: qp 4/262144 cq 5/16777216 pd 3/16777216
> 4: mlx5_3: curr/max: qp 2/262144 cq 3/16777216 pd 2/16777216
> 5: mlx5_4: curr/max: qp 4/262144 cq 5/16777216 pd 3/16777216
>
> Reviewed-by: Mark Bloch <markb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Reviewed-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>