History

devlink: implement shared buffer occupancy monitoring interface

User needs to monitor shared buffer occupancy. For that, he issues a snapshot command in order to instruct hardware to catch current and maximal occupancy values, and clear command in order to clear the historical maximal values. Also port-pool and tc-pool-bind command response messages are extended to carry occupancy values.

Jiri Pirko committed 10 years ago

Commit df38daf1 parent bf797473 files · +110 −6Browse files

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

Unified · Split

include/uapi/linux/devlink.h+6−0
@@ -53,6 +53,10 @@ enum devlink_command { · 52 unmodified lines
5353 DEVLINK_CMD_SB_TC_POOL_BIND_NEW,
5454 DEVLINK_CMD_SB_TC_POOL_BIND_DEL,
5555
56+ /* Shared buffer occupancy monitoring commands */
57+ DEVLINK_CMD_SB_OCC_SNAPSHOT,
58+ DEVLINK_CMD_SB_OCC_MAX_CLEAR,
59+
5660 /* add new commands above here */
5761
5862 __DEVLINK_CMD_MAX,
@@ -119,6 +123,8 @@ enum devlink_attr { · 60 unmodified lines
119123 DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE, /* u8 */
120124 DEVLINK_ATTR_SB_THRESHOLD, /* u32 */
121125 DEVLINK_ATTR_SB_TC_INDEX, /* u16 */
126+ DEVLINK_ATTR_SB_OCC_CUR, /* u32 */
127+ DEVLINK_ATTR_SB_OCC_MAX, /* u32 */
122128
123129 /* add new attributes above here, update the policy in devlink.c */
124130

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