History

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.

Patrisious Haddad committed 1 year ago

Commit da371101 parent 7e53b314 files · +41 −12Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/rdma/rdma_netlink.h+2−0
@@ -580,6 +580,8 @@ enum rdma_nldev_attr { · 579 unmodified lines
580580 RDMA_NLDEV_ATTR_EVENT_TYPE, /* u8 */
581581
582582 RDMA_NLDEV_SYS_ATTR_MONITOR_MODE, /* u8 */
583+
584+ RDMA_NLDEV_ATTR_STAT_OPCOUNTER_ENABLED, /* u8 */
583585 /*
584586 * Always the end
585587 */