]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add rdma statistic counter per-port auto mode support
authorMark Zhang <markz@mellanox.com>
Wed, 17 Jul 2019 14:31:52 +0000 (17:31 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 19 Jul 2019 17:51:13 +0000 (10:51 -0700)
commit887fc739eb969f4948bffa8c0a9df908fadc2838
tree63f1b299108906c175bb09cdba874ff45b7eb2f7
parent1b2ca7ada7806a8da03e65e3af40f82ad910f281
rdma: Add rdma statistic counter per-port auto mode support

With per-QP statistic counter support, a user is allowed to monitor
specific QPs categories, which are bound to/unbound from counters
dynamically allocated/deallocated.

In per-port "auto" mode, QPs are bound to counters automatically
according to common criteria. For example a per "type"(qp type)
scheme, where in each process all QPs have same qp type are bind
automatically to a single counter.
Currently only "type" (qp type) is supported. Examples:

$ rdma statistic qp set link mlx5_2/1 auto type on
$ rdma statistic qp set link mlx5_2/1 auto off

Signed-off-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/stat.c
rdma/utils.c