Provide an option to enable/disable per-port counter auto mode through RDMA netlink. Limit it to users with ADMIN capability only.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -281,6 +281,8 @@ enum rdma_nldev_command { · 280 unmodified lines | |||
| 281 | 281 | ||
| 282 | RDMA_NLDEV_CMD_GET_CHARDEV, | 282 | RDMA_NLDEV_CMD_GET_CHARDEV, |
| 283 | 283 | ||
| 284 | RDMA_NLDEV_CMD_STAT_SET, | ||
| 285 | |||
| 284 | RDMA_NLDEV_NUM_OPS | 286 | RDMA_NLDEV_NUM_OPS |
| 285 | }; | 287 | }; |
| 286 | 288 | ||
| @@ -488,6 +490,12 @@ enum rdma_nldev_attr { · 201 unmodified lines | |||
| 488 | * File descriptor handle of the net namespace object | 490 | * File descriptor handle of the net namespace object |
| 489 | */ | 491 | */ |
| 490 | RDMA_NLDEV_NET_NS_FD, /* u32 */ | 492 | RDMA_NLDEV_NET_NS_FD, /* u32 */ |
| 493 | /* | ||
| 494 | * Counter-specific attributes. | ||
| 495 | */ | ||
| 496 | RDMA_NLDEV_ATTR_STAT_MODE, /* u32 */ | ||
| 497 | RDMA_NLDEV_ATTR_STAT_RES, /* u32 */ | ||
| 498 | RDMA_NLDEV_ATTR_STAT_AUTO_MODE_MASK, /* u32 */ | ||
| 491 | 499 | ||
| 492 | /* | 500 | /* |
| 493 | * Information about a chardev. | 501 | * Information about a chardev. |