1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_IF_TEAM_H_
20 #define _UAPI_LINUX_IF_TEAM_H_
21 #define TEAM_STRING_MAX_LEN 32
22 enum {
23   TEAM_CMD_NOOP,
24   TEAM_CMD_OPTIONS_SET,
25   TEAM_CMD_OPTIONS_GET,
26   TEAM_CMD_PORT_LIST_GET,
27   __TEAM_CMD_MAX,
28   TEAM_CMD_MAX = (__TEAM_CMD_MAX - 1),
29 };
30 enum {
31   TEAM_ATTR_UNSPEC,
32   TEAM_ATTR_TEAM_IFINDEX,
33   TEAM_ATTR_LIST_OPTION,
34   TEAM_ATTR_LIST_PORT,
35   __TEAM_ATTR_MAX,
36   TEAM_ATTR_MAX = __TEAM_ATTR_MAX - 1,
37 };
38 enum {
39   TEAM_ATTR_ITEM_OPTION_UNSPEC,
40   TEAM_ATTR_ITEM_OPTION,
41   __TEAM_ATTR_ITEM_OPTION_MAX,
42   TEAM_ATTR_ITEM_OPTION_MAX = __TEAM_ATTR_ITEM_OPTION_MAX - 1,
43 };
44 enum {
45   TEAM_ATTR_OPTION_UNSPEC,
46   TEAM_ATTR_OPTION_NAME,
47   TEAM_ATTR_OPTION_CHANGED,
48   TEAM_ATTR_OPTION_TYPE,
49   TEAM_ATTR_OPTION_DATA,
50   TEAM_ATTR_OPTION_REMOVED,
51   TEAM_ATTR_OPTION_PORT_IFINDEX,
52   TEAM_ATTR_OPTION_ARRAY_INDEX,
53   __TEAM_ATTR_OPTION_MAX,
54   TEAM_ATTR_OPTION_MAX = __TEAM_ATTR_OPTION_MAX - 1,
55 };
56 enum {
57   TEAM_ATTR_ITEM_PORT_UNSPEC,
58   TEAM_ATTR_ITEM_PORT,
59   __TEAM_ATTR_ITEM_PORT_MAX,
60   TEAM_ATTR_ITEM_PORT_MAX = __TEAM_ATTR_ITEM_PORT_MAX - 1,
61 };
62 enum {
63   TEAM_ATTR_PORT_UNSPEC,
64   TEAM_ATTR_PORT_IFINDEX,
65   TEAM_ATTR_PORT_CHANGED,
66   TEAM_ATTR_PORT_LINKUP,
67   TEAM_ATTR_PORT_SPEED,
68   TEAM_ATTR_PORT_DUPLEX,
69   TEAM_ATTR_PORT_REMOVED,
70   __TEAM_ATTR_PORT_MAX,
71   TEAM_ATTR_PORT_MAX = __TEAM_ATTR_PORT_MAX - 1,
72 };
73 #define TEAM_GENL_NAME "team"
74 #define TEAM_GENL_VERSION 0x1
75 #define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME "change_event"
76 #endif
77