2 * include/linux/if_team.h - Network team device driver header
3 * Copyright (c) 2011 Jiri Pirko <jpirko@redhat.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #ifndef _UAPI_LINUX_IF_TEAM_H_
12 #define _UAPI_LINUX_IF_TEAM_H_
15 #define TEAM_STRING_MAX_LEN 32
17 /**********************************
18 * NETLINK_GENERIC netlink family.
19 **********************************/
25 TEAM_CMD_PORT_LIST_GET
,
28 TEAM_CMD_MAX
= (__TEAM_CMD_MAX
- 1),
33 TEAM_ATTR_TEAM_IFINDEX
, /* u32 */
34 TEAM_ATTR_LIST_OPTION
, /* nest */
35 TEAM_ATTR_LIST_PORT
, /* nest */
38 TEAM_ATTR_MAX
= __TEAM_ATTR_MAX
- 1,
41 /* Nested layout of get/set msg:
43 * [TEAM_ATTR_LIST_OPTION]
44 * [TEAM_ATTR_ITEM_OPTION]
45 * [TEAM_ATTR_OPTION_*], ...
46 * [TEAM_ATTR_ITEM_OPTION]
47 * [TEAM_ATTR_OPTION_*], ...
49 * [TEAM_ATTR_LIST_PORT]
50 * [TEAM_ATTR_ITEM_PORT]
51 * [TEAM_ATTR_PORT_*], ...
52 * [TEAM_ATTR_ITEM_PORT]
53 * [TEAM_ATTR_PORT_*], ...
58 TEAM_ATTR_ITEM_OPTION_UNSPEC
,
59 TEAM_ATTR_ITEM_OPTION
, /* nest */
61 __TEAM_ATTR_ITEM_OPTION_MAX
,
62 TEAM_ATTR_ITEM_OPTION_MAX
= __TEAM_ATTR_ITEM_OPTION_MAX
- 1,
66 TEAM_ATTR_OPTION_UNSPEC
,
67 TEAM_ATTR_OPTION_NAME
, /* string */
68 TEAM_ATTR_OPTION_CHANGED
, /* flag */
69 TEAM_ATTR_OPTION_TYPE
, /* u8 */
70 TEAM_ATTR_OPTION_DATA
, /* dynamic */
71 TEAM_ATTR_OPTION_REMOVED
, /* flag */
72 TEAM_ATTR_OPTION_PORT_IFINDEX
, /* u32 */ /* for per-port options */
73 TEAM_ATTR_OPTION_ARRAY_INDEX
, /* u32 */ /* for array options */
75 __TEAM_ATTR_OPTION_MAX
,
76 TEAM_ATTR_OPTION_MAX
= __TEAM_ATTR_OPTION_MAX
- 1,
80 TEAM_ATTR_ITEM_PORT_UNSPEC
,
81 TEAM_ATTR_ITEM_PORT
, /* nest */
83 __TEAM_ATTR_ITEM_PORT_MAX
,
84 TEAM_ATTR_ITEM_PORT_MAX
= __TEAM_ATTR_ITEM_PORT_MAX
- 1,
88 TEAM_ATTR_PORT_UNSPEC
,
89 TEAM_ATTR_PORT_IFINDEX
, /* u32 */
90 TEAM_ATTR_PORT_CHANGED
, /* flag */
91 TEAM_ATTR_PORT_LINKUP
, /* flag */
92 TEAM_ATTR_PORT_SPEED
, /* u32 */
93 TEAM_ATTR_PORT_DUPLEX
, /* u8 */
94 TEAM_ATTR_PORT_REMOVED
, /* flag */
97 TEAM_ATTR_PORT_MAX
= __TEAM_ATTR_PORT_MAX
- 1,
101 * NETLINK_GENERIC related info
103 #define TEAM_GENL_NAME "team"
104 #define TEAM_GENL_VERSION 0x1
105 #define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME "change_event"
107 #endif /* _UAPI_LINUX_IF_TEAM_H_ */