Greg Kroah-Hartman | e2be04c | 2017-11-01 15:09:13 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Linux ethernet bridge |
| 4 | * |
| 5 | * Authors: |
| 6 | * Lennert Buytenhek <buytenh@gnu.org> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License |
| 10 | * as published by the Free Software Foundation; either version |
| 11 | * 2 of the License, or (at your option) any later version. |
| 12 | */ |
| 13 | |
| 14 | #ifndef _UAPI_LINUX_IF_BRIDGE_H |
| 15 | #define _UAPI_LINUX_IF_BRIDGE_H |
| 16 | |
| 17 | #include <linux/types.h> |
Joe Perches | e216975 | 2013-08-01 16:17:47 -0700 | [diff] [blame] | 18 | #include <linux/if_ether.h> |
Gregory Fong | 66f1c44 | 2014-11-04 11:21:21 -0800 | [diff] [blame] | 19 | #include <linux/in6.h> |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 20 | |
| 21 | #define SYSFS_BRIDGE_ATTR "bridge" |
| 22 | #define SYSFS_BRIDGE_FDB "brforward" |
| 23 | #define SYSFS_BRIDGE_PORT_SUBDIR "brif" |
| 24 | #define SYSFS_BRIDGE_PORT_ATTR "brport" |
| 25 | #define SYSFS_BRIDGE_PORT_LINK "bridge" |
| 26 | |
| 27 | #define BRCTL_VERSION 1 |
| 28 | |
| 29 | #define BRCTL_GET_VERSION 0 |
| 30 | #define BRCTL_GET_BRIDGES 1 |
| 31 | #define BRCTL_ADD_BRIDGE 2 |
| 32 | #define BRCTL_DEL_BRIDGE 3 |
| 33 | #define BRCTL_ADD_IF 4 |
| 34 | #define BRCTL_DEL_IF 5 |
| 35 | #define BRCTL_GET_BRIDGE_INFO 6 |
| 36 | #define BRCTL_GET_PORT_LIST 7 |
| 37 | #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8 |
| 38 | #define BRCTL_SET_BRIDGE_HELLO_TIME 9 |
| 39 | #define BRCTL_SET_BRIDGE_MAX_AGE 10 |
| 40 | #define BRCTL_SET_AGEING_TIME 11 |
| 41 | #define BRCTL_SET_GC_INTERVAL 12 |
| 42 | #define BRCTL_GET_PORT_INFO 13 |
| 43 | #define BRCTL_SET_BRIDGE_STP_STATE 14 |
| 44 | #define BRCTL_SET_BRIDGE_PRIORITY 15 |
| 45 | #define BRCTL_SET_PORT_PRIORITY 16 |
| 46 | #define BRCTL_SET_PATH_COST 17 |
| 47 | #define BRCTL_GET_FDB_ENTRIES 18 |
| 48 | |
| 49 | #define BR_STATE_DISABLED 0 |
| 50 | #define BR_STATE_LISTENING 1 |
| 51 | #define BR_STATE_LEARNING 2 |
| 52 | #define BR_STATE_FORWARDING 3 |
| 53 | #define BR_STATE_BLOCKING 4 |
| 54 | |
| 55 | struct __bridge_info { |
| 56 | __u64 designated_root; |
| 57 | __u64 bridge_id; |
| 58 | __u32 root_path_cost; |
| 59 | __u32 max_age; |
| 60 | __u32 hello_time; |
| 61 | __u32 forward_delay; |
| 62 | __u32 bridge_max_age; |
| 63 | __u32 bridge_hello_time; |
| 64 | __u32 bridge_forward_delay; |
| 65 | __u8 topology_change; |
| 66 | __u8 topology_change_detected; |
| 67 | __u8 root_port; |
| 68 | __u8 stp_enabled; |
| 69 | __u32 ageing_time; |
| 70 | __u32 gc_interval; |
| 71 | __u32 hello_timer_value; |
| 72 | __u32 tcn_timer_value; |
| 73 | __u32 topology_change_timer_value; |
| 74 | __u32 gc_timer_value; |
| 75 | }; |
| 76 | |
| 77 | struct __port_info { |
| 78 | __u64 designated_root; |
| 79 | __u64 designated_bridge; |
| 80 | __u16 port_id; |
| 81 | __u16 designated_port; |
| 82 | __u32 path_cost; |
| 83 | __u32 designated_cost; |
| 84 | __u8 state; |
| 85 | __u8 top_change_ack; |
| 86 | __u8 config_pending; |
| 87 | __u8 unused0; |
| 88 | __u32 message_age_timer_value; |
| 89 | __u32 forward_delay_timer_value; |
| 90 | __u32 hold_timer_value; |
| 91 | }; |
| 92 | |
| 93 | struct __fdb_entry { |
Joe Perches | e216975 | 2013-08-01 16:17:47 -0700 | [diff] [blame] | 94 | __u8 mac_addr[ETH_ALEN]; |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 95 | __u8 port_no; |
| 96 | __u8 is_local; |
| 97 | __u32 ageing_timer_value; |
| 98 | __u8 port_hi; |
| 99 | __u8 pad0; |
| 100 | __u16 unused; |
| 101 | }; |
| 102 | |
John Fastabend | 2469ffd | 2012-10-24 08:13:03 +0000 | [diff] [blame] | 103 | /* Bridge Flags */ |
| 104 | #define BRIDGE_FLAGS_MASTER 1 /* Bridge command to/from master */ |
| 105 | #define BRIDGE_FLAGS_SELF 2 /* Bridge command to/from lowerdev */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 106 | |
John Fastabend | 2469ffd | 2012-10-24 08:13:03 +0000 | [diff] [blame] | 107 | #define BRIDGE_MODE_VEB 0 /* Default loopback mode */ |
| 108 | #define BRIDGE_MODE_VEPA 1 /* 802.1Qbg defined VEPA mode */ |
Roopa Prabhu | fc0bdbb | 2014-12-08 14:04:19 -0800 | [diff] [blame] | 109 | #define BRIDGE_MODE_UNDEF 0xFFFF /* mode undefined */ |
John Fastabend | 2469ffd | 2012-10-24 08:13:03 +0000 | [diff] [blame] | 110 | |
| 111 | /* Bridge management nested attributes |
| 112 | * [IFLA_AF_SPEC] = { |
| 113 | * [IFLA_BRIDGE_FLAGS] |
| 114 | * [IFLA_BRIDGE_MODE] |
Vlad Yasevich | 407af32 | 2013-02-13 12:00:12 +0000 | [diff] [blame] | 115 | * [IFLA_BRIDGE_VLAN_INFO] |
John Fastabend | 2469ffd | 2012-10-24 08:13:03 +0000 | [diff] [blame] | 116 | * } |
| 117 | */ |
| 118 | enum { |
| 119 | IFLA_BRIDGE_FLAGS, |
| 120 | IFLA_BRIDGE_MODE, |
Vlad Yasevich | 407af32 | 2013-02-13 12:00:12 +0000 | [diff] [blame] | 121 | IFLA_BRIDGE_VLAN_INFO, |
Roopa Prabhu | b3c7ef0 | 2017-01-31 22:59:53 -0800 | [diff] [blame] | 122 | IFLA_BRIDGE_VLAN_TUNNEL_INFO, |
John Fastabend | 2469ffd | 2012-10-24 08:13:03 +0000 | [diff] [blame] | 123 | __IFLA_BRIDGE_MAX, |
| 124 | }; |
| 125 | #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1) |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 126 | |
Vlad Yasevich | 407af32 | 2013-02-13 12:00:12 +0000 | [diff] [blame] | 127 | #define BRIDGE_VLAN_INFO_MASTER (1<<0) /* Operate on Bridge device as well */ |
Vlad Yasevich | 552406c | 2013-02-13 12:00:15 +0000 | [diff] [blame] | 128 | #define BRIDGE_VLAN_INFO_PVID (1<<1) /* VLAN is PVID, ingress untagged */ |
Vlad Yasevich | 35e03f3 | 2013-02-13 12:00:20 +0000 | [diff] [blame] | 129 | #define BRIDGE_VLAN_INFO_UNTAGGED (1<<2) /* VLAN egresses untagged */ |
Roopa Prabhu | bdced7e | 2015-01-10 07:31:12 -0800 | [diff] [blame] | 130 | #define BRIDGE_VLAN_INFO_RANGE_BEGIN (1<<3) /* VLAN is start of vlan range */ |
| 131 | #define BRIDGE_VLAN_INFO_RANGE_END (1<<4) /* VLAN is end of vlan range */ |
Nikolay Aleksandrov | 2594e906 | 2015-09-25 19:00:11 +0200 | [diff] [blame] | 132 | #define BRIDGE_VLAN_INFO_BRENTRY (1<<5) /* Global bridge VLAN entry */ |
Nikolay Aleksandrov | a5d29ae | 2020-01-24 13:40:21 +0200 | [diff] [blame^] | 133 | #define BRIDGE_VLAN_INFO_ONLY_OPTS (1<<6) /* Skip create/delete/flags */ |
Vlad Yasevich | 407af32 | 2013-02-13 12:00:12 +0000 | [diff] [blame] | 134 | |
| 135 | struct bridge_vlan_info { |
Cong Wang | 9f89ec8 | 2013-02-14 13:32:31 +0800 | [diff] [blame] | 136 | __u16 flags; |
| 137 | __u16 vid; |
Vlad Yasevich | 407af32 | 2013-02-13 12:00:12 +0000 | [diff] [blame] | 138 | }; |
| 139 | |
Roopa Prabhu | b3c7ef0 | 2017-01-31 22:59:53 -0800 | [diff] [blame] | 140 | enum { |
| 141 | IFLA_BRIDGE_VLAN_TUNNEL_UNSPEC, |
| 142 | IFLA_BRIDGE_VLAN_TUNNEL_ID, |
| 143 | IFLA_BRIDGE_VLAN_TUNNEL_VID, |
| 144 | IFLA_BRIDGE_VLAN_TUNNEL_FLAGS, |
| 145 | __IFLA_BRIDGE_VLAN_TUNNEL_MAX, |
| 146 | }; |
| 147 | |
| 148 | #define IFLA_BRIDGE_VLAN_TUNNEL_MAX (__IFLA_BRIDGE_VLAN_TUNNEL_MAX - 1) |
| 149 | |
Nikolay Aleksandrov | a60c090 | 2016-04-30 10:25:29 +0200 | [diff] [blame] | 150 | struct bridge_vlan_xstats { |
| 151 | __u64 rx_bytes; |
| 152 | __u64 rx_packets; |
| 153 | __u64 tx_bytes; |
| 154 | __u64 tx_packets; |
| 155 | __u16 vid; |
Nikolay Aleksandrov | 61ba1a2 | 2016-08-17 12:53:10 +0200 | [diff] [blame] | 156 | __u16 flags; |
Nikolay Aleksandrov | a60c090 | 2016-04-30 10:25:29 +0200 | [diff] [blame] | 157 | __u32 pad2; |
| 158 | }; |
| 159 | |
Vivien Didelot | de17996 | 2019-12-11 20:07:10 -0500 | [diff] [blame] | 160 | struct bridge_stp_xstats { |
| 161 | __u64 transition_blk; |
| 162 | __u64 transition_fwd; |
| 163 | __u64 rx_bpdu; |
| 164 | __u64 tx_bpdu; |
| 165 | __u64 rx_tcn; |
| 166 | __u64 tx_tcn; |
| 167 | }; |
| 168 | |
Nikolay Aleksandrov | 8dcea18 | 2020-01-14 19:56:09 +0200 | [diff] [blame] | 169 | /* Bridge vlan RTM header */ |
| 170 | struct br_vlan_msg { |
| 171 | __u8 family; |
| 172 | __u8 reserved1; |
| 173 | __u16 reserved2; |
| 174 | __u32 ifindex; |
| 175 | }; |
| 176 | |
| 177 | /* Bridge vlan RTM attributes |
| 178 | * [BRIDGE_VLANDB_ENTRY] = { |
| 179 | * [BRIDGE_VLANDB_ENTRY_INFO] |
| 180 | * ... |
| 181 | * } |
| 182 | */ |
| 183 | enum { |
| 184 | BRIDGE_VLANDB_UNSPEC, |
| 185 | BRIDGE_VLANDB_ENTRY, |
| 186 | __BRIDGE_VLANDB_MAX, |
| 187 | }; |
| 188 | #define BRIDGE_VLANDB_MAX (__BRIDGE_VLANDB_MAX - 1) |
| 189 | |
| 190 | enum { |
| 191 | BRIDGE_VLANDB_ENTRY_UNSPEC, |
| 192 | BRIDGE_VLANDB_ENTRY_INFO, |
Nikolay Aleksandrov | 0ab5587 | 2020-01-14 19:56:12 +0200 | [diff] [blame] | 193 | BRIDGE_VLANDB_ENTRY_RANGE, |
Nikolay Aleksandrov | 8dcea18 | 2020-01-14 19:56:09 +0200 | [diff] [blame] | 194 | __BRIDGE_VLANDB_ENTRY_MAX, |
| 195 | }; |
| 196 | #define BRIDGE_VLANDB_ENTRY_MAX (__BRIDGE_VLANDB_ENTRY_MAX - 1) |
| 197 | |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 198 | /* Bridge multicast database attributes |
| 199 | * [MDBA_MDB] = { |
| 200 | * [MDBA_MDB_ENTRY] = { |
Nikolay Aleksandrov | 2125715 | 2016-02-16 12:46:54 +0100 | [diff] [blame] | 201 | * [MDBA_MDB_ENTRY_INFO] { |
| 202 | * struct br_mdb_entry |
| 203 | * [MDBA_MDB_EATTR attributes] |
| 204 | * } |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 205 | * } |
| 206 | * } |
| 207 | * [MDBA_ROUTER] = { |
Nikolay Aleksandrov | 59f78f9 | 2016-02-26 21:20:04 +0100 | [diff] [blame] | 208 | * [MDBA_ROUTER_PORT] = { |
| 209 | * u32 ifindex |
| 210 | * [MDBA_ROUTER_PATTR attributes] |
| 211 | * } |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 212 | * } |
| 213 | */ |
| 214 | enum { |
| 215 | MDBA_UNSPEC, |
| 216 | MDBA_MDB, |
| 217 | MDBA_ROUTER, |
| 218 | __MDBA_MAX, |
| 219 | }; |
| 220 | #define MDBA_MAX (__MDBA_MAX - 1) |
| 221 | |
| 222 | enum { |
| 223 | MDBA_MDB_UNSPEC, |
| 224 | MDBA_MDB_ENTRY, |
| 225 | __MDBA_MDB_MAX, |
| 226 | }; |
| 227 | #define MDBA_MDB_MAX (__MDBA_MDB_MAX - 1) |
| 228 | |
| 229 | enum { |
| 230 | MDBA_MDB_ENTRY_UNSPEC, |
| 231 | MDBA_MDB_ENTRY_INFO, |
| 232 | __MDBA_MDB_ENTRY_MAX, |
| 233 | }; |
| 234 | #define MDBA_MDB_ENTRY_MAX (__MDBA_MDB_ENTRY_MAX - 1) |
| 235 | |
Nikolay Aleksandrov | 2125715 | 2016-02-16 12:46:54 +0100 | [diff] [blame] | 236 | /* per mdb entry additional attributes */ |
| 237 | enum { |
| 238 | MDBA_MDB_EATTR_UNSPEC, |
| 239 | MDBA_MDB_EATTR_TIMER, |
| 240 | __MDBA_MDB_EATTR_MAX |
| 241 | }; |
| 242 | #define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) |
| 243 | |
Nikolay Aleksandrov | 7f0aec7 | 2016-02-26 21:20:01 +0100 | [diff] [blame] | 244 | /* multicast router types */ |
| 245 | enum { |
| 246 | MDB_RTR_TYPE_DISABLED, |
| 247 | MDB_RTR_TYPE_TEMP_QUERY, |
| 248 | MDB_RTR_TYPE_PERM, |
Nikolay Aleksandrov | a55d824 | 2016-02-26 21:20:03 +0100 | [diff] [blame] | 249 | MDB_RTR_TYPE_TEMP |
Nikolay Aleksandrov | 7f0aec7 | 2016-02-26 21:20:01 +0100 | [diff] [blame] | 250 | }; |
| 251 | |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 252 | enum { |
| 253 | MDBA_ROUTER_UNSPEC, |
| 254 | MDBA_ROUTER_PORT, |
| 255 | __MDBA_ROUTER_MAX, |
| 256 | }; |
| 257 | #define MDBA_ROUTER_MAX (__MDBA_ROUTER_MAX - 1) |
| 258 | |
Nikolay Aleksandrov | 59f78f9 | 2016-02-26 21:20:04 +0100 | [diff] [blame] | 259 | /* router port attributes */ |
| 260 | enum { |
| 261 | MDBA_ROUTER_PATTR_UNSPEC, |
| 262 | MDBA_ROUTER_PATTR_TIMER, |
| 263 | MDBA_ROUTER_PATTR_TYPE, |
| 264 | __MDBA_ROUTER_PATTR_MAX |
| 265 | }; |
| 266 | #define MDBA_ROUTER_PATTR_MAX (__MDBA_ROUTER_PATTR_MAX - 1) |
| 267 | |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 268 | struct br_port_msg { |
Cong Wang | cfd5675 | 2012-12-11 22:23:08 +0000 | [diff] [blame] | 269 | __u8 family; |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 270 | __u32 ifindex; |
| 271 | }; |
| 272 | |
| 273 | struct br_mdb_entry { |
| 274 | __u32 ifindex; |
Amerigo Wang | ccb1c31 | 2012-12-14 22:09:51 +0000 | [diff] [blame] | 275 | #define MDB_TEMPORARY 0 |
| 276 | #define MDB_PERMANENT 1 |
| 277 | __u8 state; |
Elad Raz | 157ede6 | 2016-02-03 09:57:04 +0100 | [diff] [blame] | 278 | #define MDB_FLAGS_OFFLOAD (1 << 0) |
Nikolay Aleksandrov | 3247b27 | 2019-07-30 15:20:41 +0300 | [diff] [blame] | 279 | #define MDB_FLAGS_FAST_LEAVE (1 << 1) |
Elad Raz | 157ede6 | 2016-02-03 09:57:04 +0100 | [diff] [blame] | 280 | __u8 flags; |
Nikolay Aleksandrov | 74fe61f | 2015-07-10 08:02:08 -0700 | [diff] [blame] | 281 | __u16 vid; |
Cong Wang | ee07c6e | 2012-12-07 00:04:48 +0000 | [diff] [blame] | 282 | struct { |
| 283 | union { |
| 284 | __be32 ip4; |
| 285 | struct in6_addr ip6; |
| 286 | } u; |
| 287 | __be16 proto; |
| 288 | } addr; |
| 289 | }; |
| 290 | |
Cong Wang | cfd5675 | 2012-12-11 22:23:08 +0000 | [diff] [blame] | 291 | enum { |
| 292 | MDBA_SET_ENTRY_UNSPEC, |
| 293 | MDBA_SET_ENTRY, |
| 294 | __MDBA_SET_ENTRY_MAX, |
| 295 | }; |
| 296 | #define MDBA_SET_ENTRY_MAX (__MDBA_SET_ENTRY_MAX - 1) |
| 297 | |
Nikolay Aleksandrov | a60c090 | 2016-04-30 10:25:29 +0200 | [diff] [blame] | 298 | /* Embedded inside LINK_XSTATS_TYPE_BRIDGE */ |
| 299 | enum { |
| 300 | BRIDGE_XSTATS_UNSPEC, |
| 301 | BRIDGE_XSTATS_VLAN, |
Nikolay Aleksandrov | 1080ab9 | 2016-06-28 16:57:06 +0200 | [diff] [blame] | 302 | BRIDGE_XSTATS_MCAST, |
| 303 | BRIDGE_XSTATS_PAD, |
Vivien Didelot | de17996 | 2019-12-11 20:07:10 -0500 | [diff] [blame] | 304 | BRIDGE_XSTATS_STP, |
Nikolay Aleksandrov | a60c090 | 2016-04-30 10:25:29 +0200 | [diff] [blame] | 305 | __BRIDGE_XSTATS_MAX |
| 306 | }; |
| 307 | #define BRIDGE_XSTATS_MAX (__BRIDGE_XSTATS_MAX - 1) |
| 308 | |
Nikolay Aleksandrov | 1080ab9 | 2016-06-28 16:57:06 +0200 | [diff] [blame] | 309 | enum { |
| 310 | BR_MCAST_DIR_RX, |
| 311 | BR_MCAST_DIR_TX, |
| 312 | BR_MCAST_DIR_SIZE |
| 313 | }; |
| 314 | |
| 315 | /* IGMP/MLD statistics */ |
| 316 | struct br_mcast_stats { |
Nikolay Aleksandrov | a65056e | 2016-07-06 12:12:21 -0700 | [diff] [blame] | 317 | __u64 igmp_v1queries[BR_MCAST_DIR_SIZE]; |
| 318 | __u64 igmp_v2queries[BR_MCAST_DIR_SIZE]; |
| 319 | __u64 igmp_v3queries[BR_MCAST_DIR_SIZE]; |
Nikolay Aleksandrov | 1080ab9 | 2016-06-28 16:57:06 +0200 | [diff] [blame] | 320 | __u64 igmp_leaves[BR_MCAST_DIR_SIZE]; |
| 321 | __u64 igmp_v1reports[BR_MCAST_DIR_SIZE]; |
| 322 | __u64 igmp_v2reports[BR_MCAST_DIR_SIZE]; |
| 323 | __u64 igmp_v3reports[BR_MCAST_DIR_SIZE]; |
| 324 | __u64 igmp_parse_errors; |
| 325 | |
Nikolay Aleksandrov | a65056e | 2016-07-06 12:12:21 -0700 | [diff] [blame] | 326 | __u64 mld_v1queries[BR_MCAST_DIR_SIZE]; |
| 327 | __u64 mld_v2queries[BR_MCAST_DIR_SIZE]; |
Nikolay Aleksandrov | 1080ab9 | 2016-06-28 16:57:06 +0200 | [diff] [blame] | 328 | __u64 mld_leaves[BR_MCAST_DIR_SIZE]; |
| 329 | __u64 mld_v1reports[BR_MCAST_DIR_SIZE]; |
| 330 | __u64 mld_v2reports[BR_MCAST_DIR_SIZE]; |
| 331 | __u64 mld_parse_errors; |
| 332 | |
| 333 | __u64 mcast_bytes[BR_MCAST_DIR_SIZE]; |
| 334 | __u64 mcast_packets[BR_MCAST_DIR_SIZE]; |
| 335 | }; |
Nikolay Aleksandrov | a428afe | 2018-11-24 04:34:20 +0200 | [diff] [blame] | 336 | |
| 337 | /* bridge boolean options |
Nikolay Aleksandrov | 70e4272 | 2018-11-24 04:34:21 +0200 | [diff] [blame] | 338 | * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets |
| 339 | * |
Nikolay Aleksandrov | a428afe | 2018-11-24 04:34:20 +0200 | [diff] [blame] | 340 | * IMPORTANT: if adding a new option do not forget to handle |
| 341 | * it in br_boolopt_toggle/get and bridge sysfs |
| 342 | */ |
| 343 | enum br_boolopt_id { |
Nikolay Aleksandrov | 70e4272 | 2018-11-24 04:34:21 +0200 | [diff] [blame] | 344 | BR_BOOLOPT_NO_LL_LEARN, |
Nikolay Aleksandrov | a428afe | 2018-11-24 04:34:20 +0200 | [diff] [blame] | 345 | BR_BOOLOPT_MAX |
| 346 | }; |
| 347 | |
| 348 | /* struct br_boolopt_multi - change multiple bridge boolean options |
| 349 | * |
| 350 | * @optval: new option values (bit per option) |
| 351 | * @optmask: options to change (bit per option) |
| 352 | */ |
| 353 | struct br_boolopt_multi { |
| 354 | __u32 optval; |
| 355 | __u32 optmask; |
| 356 | }; |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 357 | #endif /* _UAPI_LINUX_IF_BRIDGE_H */ |