1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Lin !! 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* Do not edit directly, auto-generated from: !! 2 /* 3 /* Documentation/netlink/specs/team.yaml !! 3 * include/linux/if_team.h - Network team device driver header 4 /* YNL-GEN uapi header */ !! 4 * Copyright (c) 2011 Jiri Pirko <jpirko@redhat.com> >> 5 * >> 6 * This program is free software; you can redistribute it and/or modify >> 7 * it under the terms of the GNU General Public License as published by >> 8 * the Free Software Foundation; either version 2 of the License, or >> 9 * (at your option) any later version. >> 10 */ >> 11 >> 12 #ifndef _UAPI_LINUX_IF_TEAM_H_ >> 13 #define _UAPI_LINUX_IF_TEAM_H_ >> 14 >> 15 >> 16 #define TEAM_STRING_MAX_LEN 32 >> 17 >> 18 /********************************** >> 19 * NETLINK_GENERIC netlink family. >> 20 **********************************/ 5 21 6 #ifndef _UAPI_LINUX_IF_TEAM_H !! 22 enum { 7 #define _UAPI_LINUX_IF_TEAM_H !! 23 TEAM_CMD_NOOP, 8 !! 24 TEAM_CMD_OPTIONS_SET, 9 #define TEAM_GENL_NAME "team" !! 25 TEAM_CMD_OPTIONS_GET, 10 #define TEAM_GENL_VERSION 1 !! 26 TEAM_CMD_PORT_LIST_GET, 11 27 12 #define TEAM_STRING_MAX_LEN !! 28 __TEAM_CMD_MAX, 13 #define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME !! 29 TEAM_CMD_MAX = (__TEAM_CMD_MAX - 1), >> 30 }; 14 31 15 enum { 32 enum { 16 TEAM_ATTR_UNSPEC, 33 TEAM_ATTR_UNSPEC, 17 TEAM_ATTR_TEAM_IFINDEX, !! 34 TEAM_ATTR_TEAM_IFINDEX, /* u32 */ 18 TEAM_ATTR_LIST_OPTION, !! 35 TEAM_ATTR_LIST_OPTION, /* nest */ 19 TEAM_ATTR_LIST_PORT, !! 36 TEAM_ATTR_LIST_PORT, /* nest */ 20 37 21 __TEAM_ATTR_MAX, 38 __TEAM_ATTR_MAX, 22 TEAM_ATTR_MAX = (__TEAM_ATTR_MAX - 1) !! 39 TEAM_ATTR_MAX = __TEAM_ATTR_MAX - 1, 23 }; 40 }; 24 41 >> 42 /* Nested layout of get/set msg: >> 43 * >> 44 * [TEAM_ATTR_LIST_OPTION] >> 45 * [TEAM_ATTR_ITEM_OPTION] >> 46 * [TEAM_ATTR_OPTION_*], ... >> 47 * [TEAM_ATTR_ITEM_OPTION] >> 48 * [TEAM_ATTR_OPTION_*], ... >> 49 * ... >> 50 * [TEAM_ATTR_LIST_PORT] >> 51 * [TEAM_ATTR_ITEM_PORT] >> 52 * [TEAM_ATTR_PORT_*], ... >> 53 * [TEAM_ATTR_ITEM_PORT] >> 54 * [TEAM_ATTR_PORT_*], ... >> 55 * ... >> 56 */ >> 57 25 enum { 58 enum { 26 TEAM_ATTR_ITEM_OPTION_UNSPEC, 59 TEAM_ATTR_ITEM_OPTION_UNSPEC, 27 TEAM_ATTR_ITEM_OPTION, !! 60 TEAM_ATTR_ITEM_OPTION, /* nest */ 28 61 29 __TEAM_ATTR_ITEM_OPTION_MAX, 62 __TEAM_ATTR_ITEM_OPTION_MAX, 30 TEAM_ATTR_ITEM_OPTION_MAX = (__TEAM_AT !! 63 TEAM_ATTR_ITEM_OPTION_MAX = __TEAM_ATTR_ITEM_OPTION_MAX - 1, 31 }; 64 }; 32 65 33 enum { 66 enum { 34 TEAM_ATTR_OPTION_UNSPEC, 67 TEAM_ATTR_OPTION_UNSPEC, 35 TEAM_ATTR_OPTION_NAME, !! 68 TEAM_ATTR_OPTION_NAME, /* string */ 36 TEAM_ATTR_OPTION_CHANGED, !! 69 TEAM_ATTR_OPTION_CHANGED, /* flag */ 37 TEAM_ATTR_OPTION_TYPE, !! 70 TEAM_ATTR_OPTION_TYPE, /* u8 */ 38 TEAM_ATTR_OPTION_DATA, !! 71 TEAM_ATTR_OPTION_DATA, /* dynamic */ 39 TEAM_ATTR_OPTION_REMOVED, !! 72 TEAM_ATTR_OPTION_REMOVED, /* flag */ 40 TEAM_ATTR_OPTION_PORT_IFINDEX, !! 73 TEAM_ATTR_OPTION_PORT_IFINDEX, /* u32 */ /* for per-port options */ 41 TEAM_ATTR_OPTION_ARRAY_INDEX, !! 74 TEAM_ATTR_OPTION_ARRAY_INDEX, /* u32 */ /* for array options */ 42 75 43 __TEAM_ATTR_OPTION_MAX, 76 __TEAM_ATTR_OPTION_MAX, 44 TEAM_ATTR_OPTION_MAX = (__TEAM_ATTR_OP !! 77 TEAM_ATTR_OPTION_MAX = __TEAM_ATTR_OPTION_MAX - 1, 45 }; 78 }; 46 79 47 enum { 80 enum { 48 TEAM_ATTR_ITEM_PORT_UNSPEC, 81 TEAM_ATTR_ITEM_PORT_UNSPEC, 49 TEAM_ATTR_ITEM_PORT, !! 82 TEAM_ATTR_ITEM_PORT, /* nest */ 50 83 51 __TEAM_ATTR_ITEM_PORT_MAX, 84 __TEAM_ATTR_ITEM_PORT_MAX, 52 TEAM_ATTR_ITEM_PORT_MAX = (__TEAM_ATTR !! 85 TEAM_ATTR_ITEM_PORT_MAX = __TEAM_ATTR_ITEM_PORT_MAX - 1, 53 }; 86 }; 54 87 55 enum { 88 enum { 56 TEAM_ATTR_PORT_UNSPEC, 89 TEAM_ATTR_PORT_UNSPEC, 57 TEAM_ATTR_PORT_IFINDEX, !! 90 TEAM_ATTR_PORT_IFINDEX, /* u32 */ 58 TEAM_ATTR_PORT_CHANGED, !! 91 TEAM_ATTR_PORT_CHANGED, /* flag */ 59 TEAM_ATTR_PORT_LINKUP, !! 92 TEAM_ATTR_PORT_LINKUP, /* flag */ 60 TEAM_ATTR_PORT_SPEED, !! 93 TEAM_ATTR_PORT_SPEED, /* u32 */ 61 TEAM_ATTR_PORT_DUPLEX, !! 94 TEAM_ATTR_PORT_DUPLEX, /* u8 */ 62 TEAM_ATTR_PORT_REMOVED, !! 95 TEAM_ATTR_PORT_REMOVED, /* flag */ 63 96 64 __TEAM_ATTR_PORT_MAX, 97 __TEAM_ATTR_PORT_MAX, 65 TEAM_ATTR_PORT_MAX = (__TEAM_ATTR_PORT !! 98 TEAM_ATTR_PORT_MAX = __TEAM_ATTR_PORT_MAX - 1, 66 }; 99 }; 67 100 68 enum { !! 101 /* 69 TEAM_CMD_NOOP, !! 102 * NETLINK_GENERIC related info 70 TEAM_CMD_OPTIONS_SET, !! 103 */ 71 TEAM_CMD_OPTIONS_GET, !! 104 #define TEAM_GENL_NAME "team" 72 TEAM_CMD_PORT_LIST_GET, !! 105 #define TEAM_GENL_VERSION 0x1 73 !! 106 #define TEAM_GENL_CHANGE_EVENT_MC_GRP_NAME "change_event" 74 __TEAM_CMD_MAX, << 75 TEAM_CMD_MAX = (__TEAM_CMD_MAX - 1) << 76 }; << 77 107 78 #endif /* _UAPI_LINUX_IF_TEAM_H */ !! 108 #endif /* _UAPI_LINUX_IF_TEAM_H_ */ 79 109
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.