Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
0c9ffc0b
Commit
0c9ffc0b
authored
May 13, 2016
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devlink: update uapi header
Get santized version from net-next
parent
18820bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
include/linux/devlink.h
include/linux/devlink.h
+63
-0
No files found.
include/linux/devlink.h
View file @
0c9ffc0b
...
@@ -33,6 +33,30 @@ enum devlink_command {
...
@@ -33,6 +33,30 @@ enum devlink_command {
DEVLINK_CMD_PORT_SPLIT
,
DEVLINK_CMD_PORT_SPLIT
,
DEVLINK_CMD_PORT_UNSPLIT
,
DEVLINK_CMD_PORT_UNSPLIT
,
DEVLINK_CMD_SB_GET
,
/* can dump */
DEVLINK_CMD_SB_SET
,
DEVLINK_CMD_SB_NEW
,
DEVLINK_CMD_SB_DEL
,
DEVLINK_CMD_SB_POOL_GET
,
/* can dump */
DEVLINK_CMD_SB_POOL_SET
,
DEVLINK_CMD_SB_POOL_NEW
,
DEVLINK_CMD_SB_POOL_DEL
,
DEVLINK_CMD_SB_PORT_POOL_GET
,
/* can dump */
DEVLINK_CMD_SB_PORT_POOL_SET
,
DEVLINK_CMD_SB_PORT_POOL_NEW
,
DEVLINK_CMD_SB_PORT_POOL_DEL
,
DEVLINK_CMD_SB_TC_POOL_BIND_GET
,
/* can dump */
DEVLINK_CMD_SB_TC_POOL_BIND_SET
,
DEVLINK_CMD_SB_TC_POOL_BIND_NEW
,
DEVLINK_CMD_SB_TC_POOL_BIND_DEL
,
/* Shared buffer occupancy monitoring commands */
DEVLINK_CMD_SB_OCC_SNAPSHOT
,
DEVLINK_CMD_SB_OCC_MAX_CLEAR
,
/* add new commands above here */
/* add new commands above here */
__DEVLINK_CMD_MAX
,
__DEVLINK_CMD_MAX
,
...
@@ -46,6 +70,31 @@ enum devlink_port_type {
...
@@ -46,6 +70,31 @@ enum devlink_port_type {
DEVLINK_PORT_TYPE_IB
,
DEVLINK_PORT_TYPE_IB
,
};
};
enum
devlink_sb_pool_type
{
DEVLINK_SB_POOL_TYPE_INGRESS
,
DEVLINK_SB_POOL_TYPE_EGRESS
,
};
/* static threshold - limiting the maximum number of bytes.
* dynamic threshold - limiting the maximum number of bytes
* based on the currently available free space in the shared buffer pool.
* In this mode, the maximum quota is calculated based
* on the following formula:
* max_quota = alpha / (1 + alpha) * Free_Buffer
* While Free_Buffer is the amount of none-occupied buffer associated to
* the relevant pool.
* The value range which can be passed is 0-20 and serves
* for computation of alpha by following formula:
* alpha = 2 ^ (passed_value - 10)
*/
enum
devlink_sb_threshold_type
{
DEVLINK_SB_THRESHOLD_TYPE_STATIC
,
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC
,
};
#define DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX 20
enum
devlink_attr
{
enum
devlink_attr
{
/* don't change the order or add anything between, this is ABI! */
/* don't change the order or add anything between, this is ABI! */
DEVLINK_ATTR_UNSPEC
,
DEVLINK_ATTR_UNSPEC
,
...
@@ -62,6 +111,20 @@ enum devlink_attr {
...
@@ -62,6 +111,20 @@ enum devlink_attr {
DEVLINK_ATTR_PORT_IBDEV_NAME
,
/* string */
DEVLINK_ATTR_PORT_IBDEV_NAME
,
/* string */
DEVLINK_ATTR_PORT_SPLIT_COUNT
,
/* u32 */
DEVLINK_ATTR_PORT_SPLIT_COUNT
,
/* u32 */
DEVLINK_ATTR_PORT_SPLIT_GROUP
,
/* u32 */
DEVLINK_ATTR_PORT_SPLIT_GROUP
,
/* u32 */
DEVLINK_ATTR_SB_INDEX
,
/* u32 */
DEVLINK_ATTR_SB_SIZE
,
/* u32 */
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT
,
/* u16 */
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT
,
/* u16 */
DEVLINK_ATTR_SB_INGRESS_TC_COUNT
,
/* u16 */
DEVLINK_ATTR_SB_EGRESS_TC_COUNT
,
/* u16 */
DEVLINK_ATTR_SB_POOL_INDEX
,
/* u16 */
DEVLINK_ATTR_SB_POOL_TYPE
,
/* u8 */
DEVLINK_ATTR_SB_POOL_SIZE
,
/* u32 */
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE
,
/* u8 */
DEVLINK_ATTR_SB_THRESHOLD
,
/* u32 */
DEVLINK_ATTR_SB_TC_INDEX
,
/* u16 */
DEVLINK_ATTR_SB_OCC_CUR
,
/* u32 */
DEVLINK_ATTR_SB_OCC_MAX
,
/* u32 */
/* add new attributes above here, update the policy in devlink.c */
/* add new attributes above here, update the policy in devlink.c */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment