From 2d0ec246252ea185220382066519862ab8bfcd4b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Apr 2018 17:29:15 +0200 Subject: sys/linux: improve team descriptions 1. Create ifindex_team, because TEAM_ATTR_TEAM_IFINDEX must always point to a team device. 2. Remove output only attributes like team_attr_item_port, TEAM_ATTR_LIST_PORT, TEAM_ATTR_OPTION_CHANGED. 3. Restructure team_nl_option_policy: we always want TEAM_ATTR_OPTION_NAME/TYPE/DATA + optionally TEAM_ATTR_OPTION_ARRAY_INDEX and TEAM_ATTR_OPTION_PORT_IFINDEX. 4. Provide specialized team_nl_option_policy_per_port and team_nl_option_policy_array. 5. Make team_attr_option varlen. 6. Remove unnecessary indirection via team_attr_list_option/team_attr_list_port. 7. Fix data type for bpf_hash_func and lb_tx_hash_to_port_mapping. --- sys/linux/socket_netlink_generic_team_arm.const | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'sys/linux/socket_netlink_generic_team_arm.const') diff --git a/sys/linux/socket_netlink_generic_team_arm.const b/sys/linux/socket_netlink_generic_team_arm.const index f224921fb..e6381af9d 100644 --- a/sys/linux/socket_netlink_generic_team_arm.const +++ b/sys/linux/socket_netlink_generic_team_arm.const @@ -4,25 +4,19 @@ NLA_FLAG = 6 NLA_S32 = 14 NLA_STRING = 5 NLA_U32 = 3 +SIOCGIFINDEX = 35123 TEAM_ATTR_ITEM_OPTION = 1 TEAM_ATTR_LIST_OPTION = 2 -TEAM_ATTR_LIST_PORT = 3 TEAM_ATTR_OPTION_ARRAY_INDEX = 7 -TEAM_ATTR_OPTION_CHANGED = 2 TEAM_ATTR_OPTION_DATA = 4 TEAM_ATTR_OPTION_NAME = 1 TEAM_ATTR_OPTION_PORT_IFINDEX = 6 -TEAM_ATTR_OPTION_REMOVED = 5 TEAM_ATTR_OPTION_TYPE = 3 -TEAM_ATTR_PORT_CHANGED = 2 -TEAM_ATTR_PORT_DUPLEX = 5 -TEAM_ATTR_PORT_IFINDEX = 1 -TEAM_ATTR_PORT_LINKUP = 3 -TEAM_ATTR_PORT_REMOVED = 6 -TEAM_ATTR_PORT_SPEED = 4 TEAM_ATTR_TEAM_IFINDEX = 1 TEAM_CMD_NOOP = 0 TEAM_CMD_OPTIONS_GET = 2 TEAM_CMD_OPTIONS_SET = 1 TEAM_CMD_PORT_LIST_GET = 3 +TEAM_STRING_MAX_LEN = 32 +__NR_ioctl = 54 __NR_sendmsg = 296 -- cgit mrf-deployment