Skip to content

Commit

Permalink
sys/linux: Add port and sb devlink syscalls
Browse files Browse the repository at this point in the history
Add support for set of devlink port and sb interface syscalls.

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
  • Loading branch information
daniellerts authored and dvyukov committed Jun 23, 2020
1 parent 2528093 commit 6930bbe
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 0 deletions.
78 changes: 78 additions & 0 deletions sys/linux/socket_netlink_generic_devlink.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,21 @@ sendmsg$DEVLINK_CMD_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLIN
sendmsg$DEVLINK_CMD_RELOAD(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_RELOAD, devlink_reload_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_PORT_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_PORT_GET, devlink_port_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_PORT_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_PORT_SET, devlink_port_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_PORT_SPLIT(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_PORT_SPLIT, devlink_port_split_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_PORT_UNSPLIT(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_PORT_UNSPLIT, devlink_port_unsplit_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_TRAP_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_TRAP_GET, devlink_trap_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_TRAP_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_TRAP_SET, devlink_trap_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_TRAP_GROUP_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_TRAP_GROUP_GET, devlink_trap_group_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_TRAP_GROUP_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_TRAP_GROUP_SET, devlink_trap_group_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_GET, devlink_sb_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_POOL_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_POOL_GET, devlink_sb_pool_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_POOL_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_POOL_SET, devlink_sb_pool_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_PORT_POOL_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_PORT_POOL_GET, devlink_sb_port_pool_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_PORT_POOL_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_PORT_POOL_SET, devlink_sb_port_pool_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_TC_POOL_BIND_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_TC_POOL_BIND_GET, devlink_sb_tc_pool_bind_get_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_TC_POOL_BIND_SET(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_TC_POOL_BIND_SET, devlink_sb_tc_pool_bind_set_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_OCC_SNAPSHOT(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_OCC_SNAPSHOT, devlink_sb_occ_snapshot_policy]], f flags[send_flags])
sendmsg$DEVLINK_CMD_SB_OCC_MAX_CLEAR(fd sock_nl_generic, msg ptr[in, msghdr_nl_devlink[DEVLINK_CMD_SB_OCC_MAX_CLEAR, devlink_sb_occ_max_clear_policy]], f flags[send_flags])

devlink_devname {
prefix stringnoz["netdevsim"]
Expand Down Expand Up @@ -71,6 +82,15 @@ devlink_port_set_policy {
DEVLINK_ATTR_PORT_TYPE nlattr[DEVLINK_ATTR_PORT_TYPE, int16[DEVLINK_PORT_TYPE_NOTSET:DEVLINK_PORT_TYPE_IB]]
} [packed, align[4]]

devlink_port_split_policy {
port_handle devlink_port_handle
DEVLINK_ATTR_PORT_SPLIT_COUNT nlattr[DEVLINK_ATTR_PORT_SPLIT_COUNT, int32[0:8]]
} [packed, align[4]]

devlink_port_unsplit_policy {
port_handle devlink_port_handle
} [packed, align[4]]

devlink_trap_get_policy {
dev_handle devlink_handle
DEVLINK_ATTR_TRAP_NAME nlattr[DEVLINK_ATTR_TRAP_NAME, string["source_mac_is_multicast"]]
Expand All @@ -92,3 +112,61 @@ devlink_trap_group_set_policy {
DEVLINK_ATTR_TRAP_GROUP_NAME nlattr[DEVLINK_ATTR_TRAP_GROUP_NAME, string["l2_drops"]]
DEVLINK_ATTR_TRAP_ACTION nlattr[DEVLINK_ATTR_TRAP_ACTION, int8[DEVLINK_TRAP_ACTION_DROP:DEVLINK_TRAP_ACTION_TRAP]]
} [packed, align[4]]

devlink_sb_get_policy {
handle devlink_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
} [packed, align[4]]

devlink_sb_pool_get_policy {
handle devlink_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_POOL_INDEX nlattr[DEVLINK_ATTR_SB_POOL_INDEX, int16]
} [packed, align[4]]

devlink_sb_pool_set_policy {
handle devlink_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_POOL_INDEX nlattr[DEVLINK_ATTR_SB_POOL_INDEX, int16]
DEVLINK_ATTR_SB_POOL_SIZE nlattr[DEVLINK_ATTR_SB_POOL_SIZE, int32]
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE nlattr[DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE, int8[DEVLINK_SB_THRESHOLD_TYPE_STATIC:DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC]]
} [packed, align[4]]

devlink_sb_port_pool_get_policy {
port_handle devlink_port_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_POOL_INDEX nlattr[DEVLINK_ATTR_SB_POOL_INDEX, int16]
} [packed, align[4]]

devlink_sb_port_pool_set_policy {
port_handle devlink_port_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_POOL_INDEX nlattr[DEVLINK_ATTR_SB_POOL_INDEX, int16]
DEVLINK_ATTR_SB_THRESHOLD nlattr[DEVLINK_ATTR_SB_THRESHOLD, int32]
} [packed, align[4]]

devlink_sb_tc_pool_bind_get_policy {
port_handle devlink_port_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_TC_INDEX nlattr[DEVLINK_ATTR_SB_TC_INDEX, int16]
DEVLINK_ATTR_SB_POOL_TYPE nlattr[DEVLINK_ATTR_SB_POOL_TYPE, int8[DEVLINK_SB_POOL_TYPE_INGRESS:DEVLINK_SB_POOL_TYPE_EGRESS]]
} [packed, align[4]]

devlink_sb_tc_pool_bind_set_policy {
port_handle devlink_port_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
DEVLINK_ATTR_SB_TC_INDEX nlattr[DEVLINK_ATTR_SB_TC_INDEX, int16]
DEVLINK_ATTR_SB_POOL_TYPE nlattr[DEVLINK_ATTR_SB_POOL_TYPE, int8[DEVLINK_SB_POOL_TYPE_INGRESS:DEVLINK_SB_POOL_TYPE_EGRESS]]
DEVLINK_ATTR_SB_POOL_INDEX nlattr[DEVLINK_ATTR_SB_POOL_INDEX, int16]
DEVLINK_ATTR_SB_THRESHOLD nlattr[DEVLINK_ATTR_SB_INDEX, int32]
} [packed, align[4]]

devlink_sb_occ_snapshot_policy {
handle devlink_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
} [packed, align[4]]

devlink_sb_occ_max_clear_policy {
handle devlink_handle
DEVLINK_ATTR_SB_INDEX nlattr[DEVLINK_ATTR_SB_INDEX, int32]
} [packed, align[4]]
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_386.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 370
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_amd64.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 46
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_arm.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 296
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_arm64.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 211
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_mips64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 5045
23 changes: 23 additions & 0 deletions sys/linux/socket_netlink_generic_devlink_ppc64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,43 @@ DEVLINK_ATTR_NETNS_FD = 138
DEVLINK_ATTR_NETNS_ID = 140
DEVLINK_ATTR_NETNS_PID = 139
DEVLINK_ATTR_PORT_INDEX = 3
DEVLINK_ATTR_PORT_SPLIT_COUNT = 9
DEVLINK_ATTR_PORT_TYPE = 4
DEVLINK_ATTR_SB_INDEX = 11
DEVLINK_ATTR_SB_POOL_INDEX = 17
DEVLINK_ATTR_SB_POOL_SIZE = 19
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 20
DEVLINK_ATTR_SB_POOL_TYPE = 18
DEVLINK_ATTR_SB_TC_INDEX = 22
DEVLINK_ATTR_SB_THRESHOLD = 21
DEVLINK_ATTR_TRAP_ACTION = 131
DEVLINK_ATTR_TRAP_GROUP_NAME = 135
DEVLINK_ATTR_TRAP_NAME = 130
DEVLINK_CMD_GET = 1
DEVLINK_CMD_PORT_GET = 5
DEVLINK_CMD_PORT_SET = 6
DEVLINK_CMD_PORT_SPLIT = 9
DEVLINK_CMD_PORT_UNSPLIT = 10
DEVLINK_CMD_RELOAD = 37
DEVLINK_CMD_SB_GET = 11
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 28
DEVLINK_CMD_SB_OCC_SNAPSHOT = 27
DEVLINK_CMD_SB_POOL_GET = 15
DEVLINK_CMD_SB_POOL_SET = 16
DEVLINK_CMD_SB_PORT_POOL_GET = 19
DEVLINK_CMD_SB_PORT_POOL_SET = 20
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 23
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 24
DEVLINK_CMD_TRAP_GET = 61
DEVLINK_CMD_TRAP_GROUP_GET = 65
DEVLINK_CMD_TRAP_GROUP_SET = 66
DEVLINK_CMD_TRAP_SET = 62
DEVLINK_PORT_TYPE_IB = 3
DEVLINK_PORT_TYPE_NOTSET = 0
DEVLINK_SB_POOL_TYPE_EGRESS = 1
DEVLINK_SB_POOL_TYPE_INGRESS = 0
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 1
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0
DEVLINK_TRAP_ACTION_DROP = 0
DEVLINK_TRAP_ACTION_TRAP = 1
__NR_sendmsg = 341

0 comments on commit 6930bbe

Please sign in to comment.