Add an API to support set/clear per-port auto mode.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -507,4 +507,30 @@ enum rdma_nldev_attr { · 506 unmodified lines | |||
| 507 | */ | 507 | */ |
| 508 | RDMA_NLDEV_ATTR_MAX | 508 | RDMA_NLDEV_ATTR_MAX |
| 509 | }; | 509 | }; |
| 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 | }; | ||
| 510 | #endif /* _UAPI_RDMA_NETLINK_H */ | 536 | #endif /* _UAPI_RDMA_NETLINK_H */ |