Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
if_team.h
Go to the documentation of this file.
1 /*
2  * include/linux/if_team.h - Network team device driver header
3  * Copyright (c) 2011 Jiri Pirko <[email protected]>
4  *
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.
9  */
10 
11 #ifndef _UAPI_LINUX_IF_TEAM_H_
12 #define _UAPI_LINUX_IF_TEAM_H_
13 
14 
15 #define TEAM_STRING_MAX_LEN 32
16 
17 /**********************************
18  * NETLINK_GENERIC netlink family.
19  **********************************/
20 
21 enum {
26 
29 };
30 
31 enum {
35  TEAM_ATTR_LIST_PORT, /* nest */
36 
39 };
40 
41 /* Nested layout of get/set msg:
42  *
43  * [TEAM_ATTR_LIST_OPTION]
44  * [TEAM_ATTR_ITEM_OPTION]
45  * [TEAM_ATTR_OPTION_*], ...
46  * [TEAM_ATTR_ITEM_OPTION]
47  * [TEAM_ATTR_OPTION_*], ...
48  * ...
49  * [TEAM_ATTR_LIST_PORT]
50  * [TEAM_ATTR_ITEM_PORT]
51  * [TEAM_ATTR_PORT_*], ...
52  * [TEAM_ATTR_ITEM_PORT]
53  * [TEAM_ATTR_PORT_*], ...
54  * ...
55  */
56 
57 enum {
60 
63 };
64 
65 enum {
67  TEAM_ATTR_OPTION_NAME, /* string */
70  TEAM_ATTR_OPTION_DATA, /* dynamic */
72  TEAM_ATTR_OPTION_PORT_IFINDEX, /* u32 */ /* for per-port options */
73  TEAM_ATTR_OPTION_ARRAY_INDEX, /* u32 */ /* for array options */
74 
77 };
78 
79 enum {
81  TEAM_ATTR_ITEM_PORT, /* nest */
82 
85 };
86 
87 enum {
95 
98 };
99 
100 /*
101  * NETLINK_GENERIC related info
102  */
103 #define TEAM_GENL_NAME "team"
104 #define TEAM_GENL_VERSION 0x1
105 #define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME "change_event"
106 
107 #endif /* _UAPI_LINUX_IF_TEAM_H_ */