]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Add support to optional-counters binding configuration
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 13 Mar 2025 14:18:43 +0000 (16:18 +0200)
committerLeon Romanovsky <leon@kernel.org>
Tue, 18 Mar 2025 10:18:42 +0000 (06:18 -0400)
commitda3711074f5252ee35d6348ca286351013f1d7fe
tree57722412f7225f522d19a26de92a6da54aa6ffff
parent7e53b31acc7f976d01a0718724a4c36f1fddf739
RDMA/core: Add support to optional-counters binding configuration

Whenever a new counter is created, save inside it the user requested
configuration for optional-counters binding, for manual configuration it
is requested directly by the user and for the automatic configuration it
depends on if the automatic binding was enabled with or without
optional-counters binding.

This argument will later be used by the driver to determine if to bind the
optional-counters as well or not when trying to bind this counter to a QP.

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

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/82f1c357606a16932979ef9a5910122675c74a3a.1741875070.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/counters.c
drivers/infiniband/core/nldev.c
include/rdma/rdma_counter.h
include/uapi/rdma/rdma_netlink.h