iproute2/rdma
Neta Ostrovsky 7d5cb70e94 rdma: Add stat "mode" support
This patch introduces the "mode" command, which presents the enabled or
supported (when the "supported" argument is available) optional
counters.

An optional counter is a vendor-specific counter that may be
dynamically enabled/disabled. This enhancement of hwcounters allows
exposing of counters which are for example mutual exclusive and cannot
be enabled at the same time, counters that might degrades performance,
optional debug counters, etc.

Examples:
To present currently enabled optional counters on link rocep8s0f0/1:
    $ rdma statistic mode link rocep8s0f0/1
    link rocep8s0f0/1 optional-counters cc_rx_ce_pkts

To present supported optional counters on link rocep8s0f0/1:
    $ rdma statistic mode supported link rocep8s0f0/1
    link rocep8s0f0/1 supported optional-counters cc_rx_ce_pkts,cc_rx_cnp_pkts,cc_tx_cnp_pkts

Signed-off-by: Neta Ostrovsky <netao@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2021-10-15 17:52:53 -06:00
..
include/uapi/rdma rdma: Update uapi headers 2021-10-15 17:52:47 -06:00
.gitignore rdma: Add basic infrastructure for RDMA tool 2017-08-21 17:07:44 -07:00
Makefile rdma: Add SRQ resource tracking information 2021-04-28 15:37:16 +00:00
dev.c lib: json_print: Add print_on_off() 2020-11-13 19:43:15 -07:00
link.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
rdma.c Unify batch processing across tools 2020-11-13 19:43:15 -07:00
rdma.h Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-next 2021-02-23 23:03:42 -08:00
res-cmid.c rdma: Add "PID" criteria support for statistic counter auto mode 2020-08-06 16:26:04 +00:00
res-cq.c lib: json_print: Add print_on_off() 2020-11-13 19:43:15 -07:00
res-ctx.c rdma: Add context resource tracking information 2021-04-28 15:36:59 +00:00
res-mr.c rdma: Add support to get MR in raw format 2020-07-05 18:11:37 +00:00
res-pd.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
res-qp.c rdma: Add support to get QP in raw format 2020-07-05 18:11:00 +00:00
res-srq.c rdma: Add SRQ resource tracking information 2021-04-28 15:37:16 +00:00
res.c rdma: Add SRQ resource tracking information 2021-04-28 15:37:16 +00:00
res.h rdma: Add SRQ resource tracking information 2021-04-28 15:37:16 +00:00
stat-mr.c rdma: Rewrite custom JSON and prints logic to use common API 2019-11-20 02:27:36 +00:00
stat.c rdma: Add stat "mode" support 2021-10-15 17:52:53 -06:00
stat.h rdma: Add "stat show mr" support 2019-10-27 10:28:30 -07:00
sys.c rdma: Add copy-on-fork to get sys command 2021-05-03 14:43:13 +00:00
utils.c rdma: Add SRQ resource tracking information 2021-04-28 15:37:16 +00:00