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