]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add stat manual mode support
authorMark Zhang <markz@mellanox.com>
Wed, 17 Jul 2019 14:31:54 +0000 (17:31 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 19 Jul 2019 17:51:13 +0000 (10:51 -0700)
commita6d0773ebeccc4afd292d470e2f365f1ee74dda4
treebce2593a943780c9f414c6d74aa95fa5ffc3c96b
parentcbe10b4e44f7f8d15bec5e31d16daa993a6b5d7a
rdma: Add stat manual mode support

In manual mode a QP can be manually bound to a counter. If the counter
id(cntn) is not specified that kernel will allocate one. After a
successful bind, the cntn can be seen through "rdma statistic qp show".
And in unbind if lqpn is not specified then all QPs on this counter will
be unbound.
The manual and auto mode are mutual-exclusive.

Examples:
$ rdma statistic qp bind link mlx5_2/1 lqpn 178
$ rdma statistic qp bind link mlx5_2/1 lqpn 178 cntn 4
$ rdma statistic qp unbind link mlx5_2/1 cntn 4
$ rdma statistic qp unbind link mlx5_2/1 cntn 4 lqpn 178

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