Added parameter in ib_device for enabling dynamic interrupt moderation so that it can be configured in userspace using rdma tool. In order to set adaptive-moderation for an ib device the command is: rdma dev set [DEV] adaptive-moderation [on|off] Please set on/off. rdma dev show 0: mlx5_0: node_type ca fw 16.26.0055 node_guid 248a:0703:00a5:29d0 sys_image_guid 248a:0703:00a5:29d0 adaptive-moderation on rdma resource show cq dev mlx5_0 cqn 0 cqe 1023 users 4 poll-ctx UNBOUND_WORKQUEUE adaptive-moderation off comm [ib_core]
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -520,6 +520,11 @@ enum rdma_nldev_attr { · 519 unmodified lines | ||
| 520 | 520 | RDMA_NLDEV_ATTR_STAT_HWCOUNTER_ENTRY_NAME, /* string */ |
| 521 | 521 | RDMA_NLDEV_ATTR_STAT_HWCOUNTER_ENTRY_VALUE, /* u64 */ |
| 522 | 522 | |
| 523 | + /* | |
| 524 | + * CQ adaptive moderatio (DIM) | |
| 525 | + */ | |
| 526 | + RDMA_NLDEV_ATTR_DEV_DIM, /* u8 */ | |
| 527 | + | |
| 523 | 528 | /* |
| 524 | 529 | * Always the end |
| 525 | 530 | */ |