blob: 2f591e0de73e9d2f2b2b6402e7d38b9d864ccb5a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
22enum {
Tao Baod7db5942015-01-28 10:07:51 -080023 TEAM_CMD_NOOP,
24 TEAM_CMD_OPTIONS_SET,
25 TEAM_CMD_OPTIONS_GET,
26 TEAM_CMD_PORT_LIST_GET,
Tao Baod7db5942015-01-28 10:07:51 -080027 __TEAM_CMD_MAX,
28 TEAM_CMD_MAX = (__TEAM_CMD_MAX - 1),
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
30enum {
Tao Baod7db5942015-01-28 10:07:51 -080031 TEAM_ATTR_UNSPEC,
32 TEAM_ATTR_TEAM_IFINDEX,
33 TEAM_ATTR_LIST_OPTION,
34 TEAM_ATTR_LIST_PORT,
Tao Baod7db5942015-01-28 10:07:51 -080035 __TEAM_ATTR_MAX,
36 TEAM_ATTR_MAX = __TEAM_ATTR_MAX - 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38enum {
Tao Baod7db5942015-01-28 10:07:51 -080039 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,
Ben Cheng655a7c02013-10-16 16:09:24 -070043};
44enum {
Tao Baod7db5942015-01-28 10:07:51 -080045 TEAM_ATTR_OPTION_UNSPEC,
46 TEAM_ATTR_OPTION_NAME,
Tao Baod7db5942015-01-28 10:07:51 -080047 TEAM_ATTR_OPTION_CHANGED,
48 TEAM_ATTR_OPTION_TYPE,
49 TEAM_ATTR_OPTION_DATA,
50 TEAM_ATTR_OPTION_REMOVED,
Tao Baod7db5942015-01-28 10:07:51 -080051 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,
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56enum {
Tao Baod7db5942015-01-28 10:07:51 -080057 TEAM_ATTR_ITEM_PORT_UNSPEC,
58 TEAM_ATTR_ITEM_PORT,
Tao Baod7db5942015-01-28 10:07:51 -080059 __TEAM_ATTR_ITEM_PORT_MAX,
60 TEAM_ATTR_ITEM_PORT_MAX = __TEAM_ATTR_ITEM_PORT_MAX - 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070061};
62enum {
Tao Baod7db5942015-01-28 10:07:51 -080063 TEAM_ATTR_PORT_UNSPEC,
64 TEAM_ATTR_PORT_IFINDEX,
65 TEAM_ATTR_PORT_CHANGED,
66 TEAM_ATTR_PORT_LINKUP,
Tao Baod7db5942015-01-28 10:07:51 -080067 TEAM_ATTR_PORT_SPEED,
68 TEAM_ATTR_PORT_DUPLEX,
69 TEAM_ATTR_PORT_REMOVED,
70 __TEAM_ATTR_PORT_MAX,
Tao Baod7db5942015-01-28 10:07:51 -080071 TEAM_ATTR_PORT_MAX = __TEAM_ATTR_PORT_MAX - 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73#define TEAM_GENL_NAME "team"
74#define TEAM_GENL_VERSION 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME "change_event"
76#endif