History

RDMA/counter: Add set/clear per-port auto mode support

Add an API to support set/clear per-port auto mode.

Mark Zhang committed 7 years ago

Commit 413d3341 parent 6a6c3066 files · +132 −1Browse files

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

Unified · Split

include/uapi/rdma/rdma_netlink.h+26−0
@@ -507,4 +507,30 @@ enum rdma_nldev_attr { · 506 unmodified lines
507507 */
508508 RDMA_NLDEV_ATTR_MAX
509509 };
510+
511+/*
512+ * Supported counter bind modes. All modes are mutual-exclusive.
513+ */
514+enum rdma_nl_counter_mode {
515+ RDMA_COUNTER_MODE_NONE,
516+
517+ /*
518+ * A qp is bound with a counter automatically during initialization
519+ * based on the auto mode (e.g., qp type, ...)
520+ */
521+ RDMA_COUNTER_MODE_AUTO,
522+
523+ /*
524+ * Always the end
525+ */
526+ RDMA_COUNTER_MODE_MAX,
527+};
528+
529+/*
530+ * Supported criteria in counter auto mode.
531+ * Currently only "qp type" is supported
532+ */
533+enum rdma_nl_counter_mask {
534+ RDMA_COUNTER_MASK_QP_TYPE = 1,
535+};
510536 #endif /* _UAPI_RDMA_NETLINK_H */