History

RDMA/nldev: Allow counter auto mode configration through RDMA netlink

Provide an option to enable/disable per-port counter auto mode through RDMA netlink. Limit it to users with ADMIN capability only.

Mark Zhang committed 7 years ago

Commit b47ae6f1 parent 45842fc2 files · +86 −0Browse files

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

Unified · Split

include/uapi/rdma/rdma_netlink.h+8−0
@@ -281,6 +281,8 @@ enum rdma_nldev_command { · 280 unmodified lines
281281
282282 RDMA_NLDEV_CMD_GET_CHARDEV,
283283
284+ RDMA_NLDEV_CMD_STAT_SET,
285+
284286 RDMA_NLDEV_NUM_OPS
285287 };
286288
@@ -488,6 +490,12 @@ enum rdma_nldev_attr { · 201 unmodified lines
488490 * File descriptor handle of the net namespace object
489491 */
490492 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 */
491499
492500 /*
493501 * Information about a chardev.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t