]> git.ipfire.org Git - thirdparty/iproute2.git/commit
rdma: Add optional-counter option to rdma stat bind commands
authorPatrisious Haddad <phaddad@nvidia.com>
Wed, 19 Mar 2025 08:25:26 +0000 (10:25 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 24 Mar 2025 02:47:13 +0000 (02:47 +0000)
commita03f40534f6cc35166f193889bd1c69595dd4a26
tree48dc721d9ce4362abbf7ebb5cc5f7c0a83adbfb0
parent85860c7dce2ce742ef0c6879b5c5bcbcecaaf717
rdma: Add optional-counter option to rdma stat bind commands

Add a new optional filter named optional-counter to commands:
rdma stat qp set link [link_name] auto

The new filter value can be either on or off and it must be the last
provided filter in the command, not providing it would be the same as off.

It indicates that when binding counters to a QP we also want the
currently enabled optional-counters on the link to be bound as well.

In addition Adjust rdma statistic man page to reflect the new
optional-counter changes.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/rdma-statistic.8
rdma/stat.c
rdma/utils.c