Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame^] | 1 | // Copyright 2013-2017, Big Switch Networks, Inc. |
Rich Lane | 1ac4300 | 2013-12-03 12:56:35 -0800 | [diff] [blame] | 2 | // |
| 3 | // LoxiGen is licensed under the Eclipse Public License, |
| 4 | // version 1.0 (EPL), with the following special exception: |
| 5 | // |
| 6 | // LOXI Exception |
| 7 | // |
| 8 | // As a special exception to the terms of the EPL, you may |
| 9 | // distribute libraries generated by LoxiGen (LoxiGen Libraries) |
| 10 | // under the terms of your choice, provided that copyright and |
| 11 | // licensing notices generated by LoxiGen are not altered or removed |
| 12 | // from the LoxiGen Libraries and the notice provided below is (i) |
| 13 | // included in the LoxiGen Libraries, if distributed in source code |
| 14 | // form and (ii) included in any documentation for the LoxiGen |
| 15 | // Libraries, if distributed in binary form. |
| 16 | // |
| 17 | // Notice: "Copyright 2013, Big Switch Networks, Inc. |
| 18 | // This library was generated by the LoxiGen Compiler." |
| 19 | // |
| 20 | // You may not use this file except in compliance with the EPL or |
| 21 | // LOXI Exception. You may obtain a copy of the EPL at: |
| 22 | // |
| 23 | // http://www.eclipse.org/legal/epl-v10.html |
| 24 | // |
| 25 | // Unless required by applicable law or agreed to in writing, |
| 26 | // software distributed under the License is distributed on an "AS |
| 27 | // IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 28 | // express or implied. See the EPL for the specific language |
| 29 | // governing permissions and limitations under the EPL. |
| 30 | |
| 31 | #version 4 |
Rich Lane | 4b1d8f4 | 2014-10-31 15:25:14 -0700 | [diff] [blame] | 32 | #version 5 |
Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame^] | 33 | #version 6 |
Rich Lane | 1ac4300 | 2013-12-03 12:56:35 -0800 | [diff] [blame] | 34 | |
| 35 | struct of_bsn_tlv_port : of_bsn_tlv { |
| 36 | uint16_t type == 0; |
| 37 | uint16_t length; |
| 38 | of_port_no_t value; |
| 39 | }; |
| 40 | |
| 41 | struct of_bsn_tlv_mac : of_bsn_tlv { |
| 42 | uint16_t type == 1; |
| 43 | uint16_t length; |
| 44 | of_mac_addr_t value; |
| 45 | }; |
| 46 | |
| 47 | struct of_bsn_tlv_rx_packets : of_bsn_tlv { |
| 48 | uint16_t type == 2; |
| 49 | uint16_t length; |
| 50 | uint64_t value; |
| 51 | }; |
| 52 | |
| 53 | struct of_bsn_tlv_tx_packets : of_bsn_tlv { |
| 54 | uint16_t type == 3; |
| 55 | uint16_t length; |
| 56 | uint64_t value; |
| 57 | }; |
Rich Lane | e052b08 | 2014-01-03 16:43:15 -0800 | [diff] [blame] | 58 | |
| 59 | struct of_bsn_tlv_ipv4 : of_bsn_tlv { |
| 60 | uint16_t type == 4; |
| 61 | uint16_t length; |
| 62 | of_ipv4_t value; |
| 63 | }; |
| 64 | |
| 65 | struct of_bsn_tlv_idle_time : of_bsn_tlv { |
| 66 | uint16_t type == 5; |
| 67 | uint16_t length; |
| 68 | uint64_t value; /* Milliseconds */ |
| 69 | }; |
| 70 | |
| 71 | struct of_bsn_tlv_vlan_vid : of_bsn_tlv { |
| 72 | uint16_t type == 6; |
| 73 | uint16_t length; |
| 74 | uint16_t value; |
| 75 | }; |
| 76 | |
| 77 | struct of_bsn_tlv_idle_notification : of_bsn_tlv { |
| 78 | uint16_t type == 7; |
| 79 | uint16_t length; |
| 80 | }; |
Rich Lane | a125845 | 2014-01-24 14:25:00 -0800 | [diff] [blame] | 81 | |
| 82 | struct of_bsn_tlv_idle_timeout : of_bsn_tlv { |
| 83 | uint16_t type == 8; |
| 84 | uint16_t length; |
| 85 | uint32_t value; /* Milliseconds */ |
| 86 | }; |
| 87 | |
| 88 | struct of_bsn_tlv_unicast_query_timeout : of_bsn_tlv { |
| 89 | uint16_t type == 9; |
| 90 | uint16_t length; |
| 91 | uint32_t value; /* Milliseconds */ |
| 92 | }; |
| 93 | |
| 94 | struct of_bsn_tlv_broadcast_query_timeout : of_bsn_tlv { |
| 95 | uint16_t type == 10; |
| 96 | uint16_t length; |
| 97 | uint32_t value; /* Milliseconds */ |
| 98 | }; |
| 99 | |
| 100 | struct of_bsn_tlv_request_packets : of_bsn_tlv { |
| 101 | uint16_t type == 11; |
| 102 | uint16_t length; |
| 103 | uint64_t value; |
| 104 | }; |
| 105 | |
| 106 | struct of_bsn_tlv_reply_packets : of_bsn_tlv { |
| 107 | uint16_t type == 12; |
| 108 | uint16_t length; |
| 109 | uint64_t value; |
| 110 | }; |
| 111 | |
| 112 | struct of_bsn_tlv_miss_packets : of_bsn_tlv { |
| 113 | uint16_t type == 13; |
| 114 | uint16_t length; |
| 115 | uint64_t value; |
| 116 | }; |
Duc Pham | 9d29ed0 | 2014-01-30 16:23:16 -0800 | [diff] [blame] | 117 | |
| 118 | struct of_bsn_tlv_circuit_id : of_bsn_tlv { |
| 119 | uint16_t type == 14; |
| 120 | uint16_t length; |
| 121 | of_octets_t value; |
| 122 | }; |
Rich Lane | 5151f77 | 2014-03-20 15:32:33 -0700 | [diff] [blame] | 123 | |
| 124 | struct of_bsn_tlv_udf_id : of_bsn_tlv { |
| 125 | uint16_t type == 15; |
| 126 | uint16_t length; |
| 127 | uint16_t value; |
| 128 | }; |
| 129 | |
| 130 | enum ofp_bsn_udf_anchor(wire_type=uint16_t) { |
| 131 | OFP_BSN_UDF_ANCHOR_PACKET_START = 0, |
| 132 | OFP_BSN_UDF_ANCHOR_L3_HEADER_START = 1, |
| 133 | OFP_BSN_UDF_ANCHOR_L4_HEADER_START = 2, |
| 134 | }; |
| 135 | |
| 136 | struct of_bsn_tlv_udf_anchor : of_bsn_tlv { |
| 137 | uint16_t type == 16; |
| 138 | uint16_t length; |
| 139 | enum ofp_bsn_udf_anchor value; |
| 140 | }; |
| 141 | |
| 142 | struct of_bsn_tlv_udf_offset : of_bsn_tlv { |
| 143 | uint16_t type == 17; |
| 144 | uint16_t length; |
| 145 | uint16_t value; |
| 146 | }; |
| 147 | |
| 148 | struct of_bsn_tlv_udf_length : of_bsn_tlv { |
| 149 | uint16_t type == 18; |
| 150 | uint16_t length; |
| 151 | uint16_t value; |
| 152 | }; |
Duc Pham | d07e637 | 2014-04-01 17:54:15 -0700 | [diff] [blame] | 153 | |
Duc Pham | abe23a4 | 2014-04-02 10:39:34 -0700 | [diff] [blame] | 154 | struct of_bsn_tlv_vrf : of_bsn_tlv { |
Duc Pham | d07e637 | 2014-04-01 17:54:15 -0700 | [diff] [blame] | 155 | uint16_t type == 19; |
| 156 | uint16_t length; |
Duc Pham | 48f997f | 2014-04-02 14:48:19 -0700 | [diff] [blame] | 157 | uint32_t value; |
Duc Pham | d07e637 | 2014-04-01 17:54:15 -0700 | [diff] [blame] | 158 | }; |
Duc Pham | 11b1b9d | 2014-05-07 16:56:59 -0700 | [diff] [blame] | 159 | |
| 160 | struct of_bsn_tlv_queue_id : of_bsn_tlv { |
| 161 | uint16_t type == 20; |
| 162 | uint16_t length; |
| 163 | uint32_t value; |
| 164 | }; |
| 165 | |
| 166 | struct of_bsn_tlv_queue_weight : of_bsn_tlv { |
| 167 | uint16_t type == 21; |
| 168 | uint16_t length; |
| 169 | uint32_t value; |
| 170 | }; |
Wilson Ng | 60e38ab | 2014-05-20 19:24:12 -0700 | [diff] [blame] | 171 | |
Wilson Ng | 7c45cd5 | 2014-05-21 10:45:27 -0700 | [diff] [blame] | 172 | struct of_bsn_tlv_crc_enabled : of_bsn_tlv { |
Wilson Ng | 60e38ab | 2014-05-20 19:24:12 -0700 | [diff] [blame] | 173 | uint16_t type == 22; |
| 174 | uint16_t length; |
Wilson Ng | 7c45cd5 | 2014-05-21 10:45:27 -0700 | [diff] [blame] | 175 | uint8_t value; |
Wilson Ng | 60e38ab | 2014-05-20 19:24:12 -0700 | [diff] [blame] | 176 | }; |
Rich Lane | 85b94e8 | 2014-09-24 13:24:53 -0700 | [diff] [blame] | 177 | |
| 178 | struct of_bsn_tlv_external_ip : of_bsn_tlv { |
| 179 | uint16_t type == 23; |
| 180 | uint16_t length; |
| 181 | of_ipv4_t value; |
| 182 | }; |
| 183 | |
| 184 | struct of_bsn_tlv_external_mac : of_bsn_tlv { |
| 185 | uint16_t type == 24; |
| 186 | uint16_t length; |
| 187 | of_mac_addr_t value; |
| 188 | }; |
| 189 | |
| 190 | struct of_bsn_tlv_external_netmask : of_bsn_tlv { |
| 191 | uint16_t type == 25; |
| 192 | uint16_t length; |
| 193 | of_ipv4_t value; |
| 194 | }; |
| 195 | |
| 196 | struct of_bsn_tlv_external_gateway_ip : of_bsn_tlv { |
| 197 | uint16_t type == 26; |
| 198 | uint16_t length; |
| 199 | of_ipv4_t value; |
| 200 | }; |
| 201 | |
| 202 | struct of_bsn_tlv_internal_mac : of_bsn_tlv { |
| 203 | uint16_t type == 27; |
| 204 | uint16_t length; |
| 205 | of_mac_addr_t value; |
| 206 | }; |
| 207 | |
| 208 | struct of_bsn_tlv_internal_gateway_mac : of_bsn_tlv { |
| 209 | uint16_t type == 28; |
| 210 | uint16_t length; |
| 211 | of_mac_addr_t value; |
| 212 | }; |
Rich Lane | b9ccfa1 | 2014-10-01 16:25:12 -0700 | [diff] [blame] | 213 | |
| 214 | struct of_bsn_tlv_external_gateway_mac : of_bsn_tlv { |
| 215 | uint16_t type == 29; |
| 216 | uint16_t length; |
| 217 | of_mac_addr_t value; |
| 218 | }; |
Harshmeet Singh | de7aed9 | 2014-10-06 13:09:40 -0700 | [diff] [blame] | 219 | |
| 220 | struct of_bsn_tlv_sampling_rate : of_bsn_tlv { |
| 221 | uint16_t type == 30; |
| 222 | uint16_t length; |
| 223 | uint32_t value; |
| 224 | }; |
| 225 | |
| 226 | struct of_bsn_tlv_header_size : of_bsn_tlv { |
| 227 | uint16_t type == 31; |
| 228 | uint16_t length; |
| 229 | uint32_t value; /* bytes */ |
| 230 | }; |
| 231 | |
| 232 | struct of_bsn_tlv_eth_src : of_bsn_tlv { |
| 233 | uint16_t type == 32; |
| 234 | uint16_t length; |
| 235 | of_mac_addr_t value; |
| 236 | }; |
| 237 | |
| 238 | struct of_bsn_tlv_eth_dst : of_bsn_tlv { |
| 239 | uint16_t type == 33; |
| 240 | uint16_t length; |
| 241 | of_mac_addr_t value; |
| 242 | }; |
| 243 | |
| 244 | struct of_bsn_tlv_ipv4_src : of_bsn_tlv { |
| 245 | uint16_t type == 34; |
| 246 | uint16_t length; |
| 247 | of_ipv4_t value; |
| 248 | }; |
| 249 | |
| 250 | struct of_bsn_tlv_ipv4_dst : of_bsn_tlv { |
| 251 | uint16_t type == 35; |
| 252 | uint16_t length; |
| 253 | of_ipv4_t value; |
| 254 | }; |
| 255 | |
| 256 | struct of_bsn_tlv_udp_src : of_bsn_tlv { |
| 257 | uint16_t type == 36; |
| 258 | uint16_t length; |
| 259 | uint16_t value; |
| 260 | }; |
| 261 | |
| 262 | struct of_bsn_tlv_udp_dst : of_bsn_tlv { |
| 263 | uint16_t type == 37; |
| 264 | uint16_t length; |
| 265 | uint16_t value; |
| 266 | }; |
| 267 | |
| 268 | struct of_bsn_tlv_sub_agent_id : of_bsn_tlv { |
| 269 | uint16_t type == 38; |
| 270 | uint16_t length; |
| 271 | uint32_t value; |
| 272 | }; |
| 273 | |
| 274 | struct of_bsn_tlv_tx_bytes : of_bsn_tlv { |
| 275 | uint16_t type == 39; |
| 276 | uint16_t length; |
| 277 | uint64_t value; |
| 278 | }; |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 279 | |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 280 | struct of_bsn_tlv_actor_system_priority: of_bsn_tlv { |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 281 | uint16_t type == 40; |
| 282 | uint16_t length; |
| 283 | uint16_t value; |
| 284 | }; |
| 285 | |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 286 | struct of_bsn_tlv_actor_system_mac: of_bsn_tlv { |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 287 | uint16_t type == 41; |
| 288 | uint16_t length; |
| 289 | of_mac_addr_t value; |
| 290 | }; |
| 291 | |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 292 | struct of_bsn_tlv_actor_port_priority: of_bsn_tlv { |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 293 | uint16_t type == 42; |
| 294 | uint16_t length; |
| 295 | uint16_t value; |
| 296 | }; |
| 297 | |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 298 | struct of_bsn_tlv_actor_port_num: of_bsn_tlv { |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 299 | uint16_t type == 43; |
| 300 | uint16_t length; |
| 301 | uint16_t value; |
| 302 | }; |
| 303 | |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 304 | struct of_bsn_tlv_actor_key: of_bsn_tlv { |
Harshmeet Singh | c1f2a39 | 2014-10-10 18:15:11 -0700 | [diff] [blame] | 305 | uint16_t type == 44; |
| 306 | uint16_t length; |
| 307 | uint16_t value; |
| 308 | }; |
| 309 | |
| 310 | struct of_bsn_tlv_convergence_status: of_bsn_tlv { |
| 311 | uint16_t type == 45; |
| 312 | uint16_t length; |
| 313 | uint8_t value; |
| 314 | }; |
Harshmeet Singh | 23fb16a | 2014-10-14 12:32:46 -0700 | [diff] [blame] | 315 | |
| 316 | struct of_bsn_tlv_partner_system_priority: of_bsn_tlv { |
| 317 | uint16_t type == 47; |
| 318 | uint16_t length; |
| 319 | uint16_t value; |
| 320 | }; |
| 321 | |
| 322 | struct of_bsn_tlv_partner_system_mac: of_bsn_tlv { |
| 323 | uint16_t type == 48; |
| 324 | uint16_t length; |
| 325 | of_mac_addr_t value; |
| 326 | }; |
| 327 | |
| 328 | struct of_bsn_tlv_partner_port_priority: of_bsn_tlv { |
| 329 | uint16_t type == 49; |
| 330 | uint16_t length; |
| 331 | uint16_t value; |
| 332 | }; |
| 333 | |
| 334 | struct of_bsn_tlv_partner_port_num: of_bsn_tlv { |
| 335 | uint16_t type == 50; |
| 336 | uint16_t length; |
| 337 | uint16_t value; |
| 338 | }; |
| 339 | |
| 340 | struct of_bsn_tlv_partner_key: of_bsn_tlv { |
| 341 | uint16_t type == 51; |
| 342 | uint16_t length; |
| 343 | uint16_t value; |
| 344 | }; |
Rich Lane | 991b9ff | 2014-10-17 12:30:44 -0700 | [diff] [blame] | 345 | |
| 346 | struct of_bsn_tlv_name : of_bsn_tlv { |
| 347 | uint16_t type == 52; |
| 348 | uint16_t length; |
| 349 | of_octets_t value; /* UTF-8 encoded. Not null terminated. */ |
| 350 | }; |
Harshmeet Singh | 24ab88f | 2014-10-27 15:28:27 -0700 | [diff] [blame] | 351 | |
Harshmeet Singh | 7913562 | 2014-10-27 16:11:14 -0700 | [diff] [blame] | 352 | enum ofp_bsn_lacp_state(wire_type=uint8_t, bitmask=True) { |
| 353 | OFP_BSN_LACP_STATE_ACTIVITY = 0x01, |
| 354 | OFP_BSN_LACP_STATE_TIMEOUT = 0x02, |
| 355 | OFP_BSN_LACP_STATE_AGGREGATION = 0x04, |
| 356 | OFP_BSN_LACP_STATE_SYNCHRONIZATION = 0x08, |
| 357 | OFP_BSN_LACP_STATE_COLLECTING = 0x10, |
| 358 | OFP_BSN_LACP_STATE_DISTRIBUTING = 0x20, |
| 359 | OFP_BSN_LACP_STATE_DEFAULTED = 0x40, |
| 360 | OFP_BSN_LACP_STATE_EXPIRED = 0x80, |
| 361 | }; |
| 362 | |
Harshmeet Singh | 24ab88f | 2014-10-27 15:28:27 -0700 | [diff] [blame] | 363 | struct of_bsn_tlv_actor_state: of_bsn_tlv { |
| 364 | uint16_t type == 53; |
| 365 | uint16_t length; |
Harshmeet Singh | 7913562 | 2014-10-27 16:11:14 -0700 | [diff] [blame] | 366 | enum ofp_bsn_lacp_state value; |
Harshmeet Singh | 24ab88f | 2014-10-27 15:28:27 -0700 | [diff] [blame] | 367 | }; |
| 368 | |
| 369 | struct of_bsn_tlv_partner_state: of_bsn_tlv { |
| 370 | uint16_t type == 54; |
| 371 | uint16_t length; |
Harshmeet Singh | 7913562 | 2014-10-27 16:11:14 -0700 | [diff] [blame] | 372 | enum ofp_bsn_lacp_state value; |
Harshmeet Singh | 24ab88f | 2014-10-27 15:28:27 -0700 | [diff] [blame] | 373 | }; |
Rich Lane | d353d24 | 2014-11-05 10:11:19 -0800 | [diff] [blame] | 374 | |
| 375 | struct of_bsn_tlv_data : of_bsn_tlv { |
| 376 | uint16_t type == 55; |
| 377 | uint16_t length; |
| 378 | of_octets_t value; |
| 379 | }; |
Wilson Ng | 453c73a | 2014-11-05 11:35:36 -0800 | [diff] [blame] | 380 | |
Wilson Ng | 6e6da30 | 2014-11-05 11:57:47 -0800 | [diff] [blame] | 381 | struct of_bsn_tlv_mac_mask : of_bsn_tlv { |
Wilson Ng | 453c73a | 2014-11-05 11:35:36 -0800 | [diff] [blame] | 382 | uint16_t type == 56; |
| 383 | uint16_t length; |
| 384 | of_mac_addr_t value; |
| 385 | }; |
| 386 | |
Wilson Ng | 6e6da30 | 2014-11-05 11:57:47 -0800 | [diff] [blame] | 387 | struct of_bsn_tlv_priority : of_bsn_tlv { |
Wilson Ng | 453c73a | 2014-11-05 11:35:36 -0800 | [diff] [blame] | 388 | uint16_t type == 57; |
| 389 | uint16_t length; |
Wilson Ng | 0a2406a | 2014-11-05 14:01:51 -0800 | [diff] [blame] | 390 | uint32_t value; |
Wilson Ng | 453c73a | 2014-11-05 11:35:36 -0800 | [diff] [blame] | 391 | }; |
Harshmeet Singh | 6086fee | 2014-11-20 11:03:46 -0800 | [diff] [blame] | 392 | |
| 393 | struct of_bsn_tlv_interval : of_bsn_tlv { |
| 394 | uint16_t type == 58; |
| 395 | uint16_t length; |
Harshmeet Singh | c717bc0 | 2014-11-20 12:51:38 -0800 | [diff] [blame] | 396 | uint32_t value; /* Milliseconds */ |
Harshmeet Singh | 6086fee | 2014-11-20 11:03:46 -0800 | [diff] [blame] | 397 | }; |
Rich Lane | 4cf08bd | 2014-12-03 12:47:00 -0800 | [diff] [blame] | 398 | |
| 399 | /* A reference to an entry in another gentable */ |
| 400 | struct of_bsn_tlv_reference : of_bsn_tlv { |
| 401 | uint16_t type == 59; |
| 402 | uint16_t length; |
| 403 | uint16_t table_id; |
| 404 | list(of_bsn_tlv_t) key; |
| 405 | }; |
Rich Lane | 37632bc | 2014-12-05 15:01:22 -0800 | [diff] [blame] | 406 | |
Harshmeet Singh | dbe4982 | 2014-12-04 14:49:24 -0800 | [diff] [blame] | 407 | struct of_bsn_tlv_ipv4_netmask : of_bsn_tlv { |
| 408 | uint16_t type == 60; |
| 409 | uint16_t length; |
| 410 | of_ipv4_t value; |
| 411 | }; |
Wilson Ng | c68f5d0 | 2014-12-04 15:59:28 -0800 | [diff] [blame] | 412 | |
| 413 | struct of_bsn_tlv_mpls_label : of_bsn_tlv { |
| 414 | uint16_t type == 61; |
| 415 | uint16_t length; |
| 416 | uint32_t value; |
| 417 | }; |
| 418 | |
| 419 | struct of_bsn_tlv_mpls_control_word : of_bsn_tlv { |
| 420 | uint16_t type == 62; |
| 421 | uint16_t length; |
| 422 | uint8_t value; |
| 423 | }; |
| 424 | |
| 425 | struct of_bsn_tlv_mpls_sequenced : of_bsn_tlv { |
| 426 | uint16_t type == 63; |
| 427 | uint16_t length; |
| 428 | uint8_t value; |
| 429 | }; |
Rich Lane | 2eace7d | 2014-12-17 11:32:50 -0800 | [diff] [blame] | 430 | |
| 431 | struct of_bsn_tlv_bucket : of_bsn_tlv { |
| 432 | uint16_t type == 64; |
| 433 | uint16_t length; |
| 434 | list(of_bsn_tlv_t) value; |
| 435 | }; |
Rich Lane | c0df60f | 2015-01-12 17:44:17 -0800 | [diff] [blame] | 436 | |
| 437 | struct of_bsn_tlv_tcp_src : of_bsn_tlv { |
| 438 | uint16_t type == 65; |
| 439 | uint16_t length; |
| 440 | uint16_t value; |
| 441 | }; |
| 442 | |
| 443 | struct of_bsn_tlv_tcp_dst : of_bsn_tlv { |
| 444 | uint16_t type == 66; |
| 445 | uint16_t length; |
| 446 | uint16_t value; |
| 447 | }; |
| 448 | |
| 449 | struct of_bsn_tlv_ip_proto : of_bsn_tlv { |
| 450 | uint16_t type == 67; |
| 451 | uint16_t length; |
| 452 | uint8_t value; |
| 453 | }; |
| 454 | |
| 455 | struct of_bsn_tlv_icmp_type : of_bsn_tlv { |
| 456 | uint16_t type == 68; |
| 457 | uint16_t length; |
| 458 | uint8_t value; |
| 459 | }; |
| 460 | |
| 461 | struct of_bsn_tlv_icmp_code : of_bsn_tlv { |
| 462 | uint16_t type == 69; |
| 463 | uint16_t length; |
| 464 | uint8_t value; |
| 465 | }; |
| 466 | |
| 467 | struct of_bsn_tlv_icmp_id : of_bsn_tlv { |
| 468 | uint16_t type == 70; |
| 469 | uint16_t length; |
| 470 | uint16_t value; |
| 471 | }; |
Rich Lane | 8ec889f | 2015-01-21 15:54:14 -0800 | [diff] [blame] | 472 | |
| 473 | struct of_bsn_tlv_rx_bytes : of_bsn_tlv { |
| 474 | uint16_t type == 71; |
| 475 | uint16_t length; |
| 476 | uint64_t value; |
| 477 | }; |
Harshmeet Singh | bda83b6 | 2015-04-02 12:42:47 -0700 | [diff] [blame] | 478 | |
| 479 | struct of_bsn_tlv_vlan_pcp : of_bsn_tlv { |
| 480 | uint16_t type == 72; |
| 481 | uint16_t length; |
| 482 | uint8_t value; |
| 483 | }; |
Shudong Zhou | a5e7ec8 | 2015-04-10 16:13:50 -0700 | [diff] [blame] | 484 | |
| 485 | struct of_bsn_tlv_strip_vlan_on_egress : of_bsn_tlv { |
| 486 | uint16_t type == 73; |
Shudong Zhou | 99a7d2e | 2015-04-10 19:00:32 -0700 | [diff] [blame] | 487 | uint16_t length; |
Shudong Zhou | a5e7ec8 | 2015-04-10 16:13:50 -0700 | [diff] [blame] | 488 | }; |
| 489 | |
| 490 | struct of_bsn_tlv_set_loopback_mode: of_bsn_tlv { |
| 491 | uint16_t type == 74; |
Shudong Zhou | 99a7d2e | 2015-04-10 19:00:32 -0700 | [diff] [blame] | 492 | uint16_t length; |
Shudong Zhou | a5e7ec8 | 2015-04-10 16:13:50 -0700 | [diff] [blame] | 493 | }; |
| 494 | |
| 495 | struct of_bsn_tlv_strip_mpls_l2_on_ingress : of_bsn_tlv { |
| 496 | uint16_t type == 75; |
Shudong Zhou | 99a7d2e | 2015-04-10 19:00:32 -0700 | [diff] [blame] | 497 | uint16_t length; |
Shudong Zhou | a5e7ec8 | 2015-04-10 16:13:50 -0700 | [diff] [blame] | 498 | }; |
| 499 | |
| 500 | struct of_bsn_tlv_strip_mpls_l3_on_ingress : of_bsn_tlv { |
| 501 | uint16_t type == 76; |
Shudong Zhou | 99a7d2e | 2015-04-10 19:00:32 -0700 | [diff] [blame] | 502 | uint16_t length; |
Shudong Zhou | a5e7ec8 | 2015-04-10 16:13:50 -0700 | [diff] [blame] | 503 | }; |
Rich Lane | d0c6035 | 2015-06-24 16:50:39 -0700 | [diff] [blame] | 504 | |
| 505 | struct of_bsn_tlv_vlan_vid_mask : of_bsn_tlv { |
| 506 | uint16_t type == 77; |
| 507 | uint16_t length; |
| 508 | uint16_t value; |
| 509 | }; |
Rich Lane | a927245 | 2015-06-30 00:39:41 -0700 | [diff] [blame] | 510 | |
| 511 | struct of_bsn_tlv_igmp_snooping : of_bsn_tlv { |
| 512 | uint16_t type == 78; |
| 513 | uint16_t length; |
| 514 | }; |
| 515 | |
| 516 | struct of_bsn_tlv_l2_multicast_lookup : of_bsn_tlv { |
| 517 | uint16_t type == 79; |
| 518 | uint16_t length; |
| 519 | }; |
Rich Lane | 27d8ec1 | 2015-07-01 15:58:19 -0700 | [diff] [blame] | 520 | |
| 521 | struct of_bsn_tlv_generation_id : of_bsn_tlv { |
| 522 | uint16_t type == 80; |
| 523 | uint16_t length; |
| 524 | uint64_t value; |
| 525 | }; |
| 526 | |
| 527 | enum ofp_bsn_anchor(wire_type=uint16_t) { |
| 528 | OFP_BSN_ANCHOR_PACKET_START = 0, |
| 529 | OFP_BSN_ANCHOR_L3_HEADER_START = 1, |
| 530 | OFP_BSN_ANCHOR_L4_HEADER_START = 2, |
| 531 | OFP_BSN_ANCHOR_L4_PAYLOAD_START = 3, |
| 532 | }; |
| 533 | |
| 534 | struct of_bsn_tlv_anchor : of_bsn_tlv { |
| 535 | uint16_t type == 81; |
| 536 | uint16_t length; |
| 537 | enum ofp_bsn_anchor value; |
| 538 | }; |
| 539 | |
| 540 | struct of_bsn_tlv_offset : of_bsn_tlv { |
| 541 | uint16_t type == 82; |
| 542 | uint16_t length; |
| 543 | uint16_t value; |
| 544 | }; |
Rich Lane | 4c17111 | 2015-08-18 13:15:34 -0700 | [diff] [blame] | 545 | |
| 546 | struct of_bsn_tlv_negate : of_bsn_tlv { |
| 547 | uint16_t type == 83; |
| 548 | uint16_t length; |
| 549 | }; |
Harshmeet Singh | 916ead2 | 2015-08-21 14:31:33 -0700 | [diff] [blame] | 550 | |
| 551 | struct of_bsn_tlv_ipv6 : of_bsn_tlv { |
| 552 | uint16_t type == 84; |
| 553 | uint16_t length; |
Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame^] | 554 | of_ipv6_t value; |
| 555 | }; |
| 556 | |
| 557 | enum ofp_bsn_decap(wire_type=uint16_t) { |
| 558 | OFP_BSN_DECAP_VXLAN = 0, |
| 559 | OFP_BSN_DECAP_ERSPAN = 1, |
| 560 | OFP_BSN_DECAP_L2_GRE = 2, |
| 561 | OFP_BSN_DECAP_NVGRE = 3, |
| 562 | OFP_BSN_DECAP_CAPWAP = 4, |
| 563 | OFP_BSN_DECAP_L2_MPLS = 5, |
| 564 | OFP_BSN_DECAP_L3_GRE = 6, |
| 565 | OFP_BSN_DECAP_GTP = 7, |
| 566 | OFP_BSN_DECAP_L3_MPLS = 8, |
| 567 | }; |
| 568 | |
| 569 | struct of_bsn_tlv_decap : of_bsn_tlv { |
| 570 | uint16_t type == 85; |
| 571 | uint16_t length; |
| 572 | enum ofp_bsn_decap value; |
| 573 | }; |
| 574 | |
| 575 | struct of_bsn_tlv_vni : of_bsn_tlv { |
| 576 | uint16_t type == 86; |
| 577 | uint16_t length; |
| 578 | uint32_t value; |
| 579 | }; |
| 580 | |
| 581 | struct of_bsn_tlv_mcg_type_vxlan : of_bsn_tlv { |
| 582 | uint16_t type == 87; |
| 583 | uint16_t length; |
| 584 | }; |
| 585 | |
| 586 | enum ofp_bsn_port_vxlan_mode(wire_type=uint8_t) { |
| 587 | OFP_BSN_PORT_VXLAN_RECIRCULATION_ENABLE = 0, |
| 588 | OFP_BSN_PORT_VXLAN_TERMINATION_ENABLE = 1, |
| 589 | }; |
| 590 | |
| 591 | struct of_bsn_tlv_port_vxlan_mode : of_bsn_tlv { |
| 592 | uint16_t type == 88; |
| 593 | uint16_t length; |
| 594 | enum ofp_bsn_port_vxlan_mode value; |
| 595 | }; |
| 596 | |
| 597 | enum ofp_bsn_rate_unit(wire_type=uint8_t) { |
| 598 | OFP_BSN_RATE_UNIT_PPS = 0, /* Packets per second */ |
| 599 | OFP_BSN_RATE_UNIT_KBITPS = 1, /* Kilobits per second */ |
| 600 | }; |
| 601 | |
| 602 | struct of_bsn_tlv_rate_unit : of_bsn_tlv { |
| 603 | uint16_t type == 89; |
| 604 | uint16_t length; |
| 605 | enum ofp_bsn_rate_unit value; |
| 606 | }; |
| 607 | |
| 608 | struct of_bsn_tlv_broadcast_rate : of_bsn_tlv { |
| 609 | uint16_t type == 90; |
| 610 | uint16_t length; |
| 611 | uint32_t value; |
| 612 | }; |
| 613 | |
| 614 | struct of_bsn_tlv_known_multicast_rate : of_bsn_tlv { |
| 615 | uint16_t type == 91; |
| 616 | uint16_t length; |
| 617 | uint32_t value; |
| 618 | }; |
| 619 | |
| 620 | struct of_bsn_tlv_unknown_multicast_rate : of_bsn_tlv { |
| 621 | uint16_t type == 92; |
| 622 | uint16_t length; |
| 623 | uint32_t value; |
| 624 | }; |
| 625 | |
| 626 | struct of_bsn_tlv_unicast_rate : of_bsn_tlv { |
| 627 | uint16_t type == 93; |
| 628 | uint16_t length; |
| 629 | uint32_t value; |
| 630 | }; |
| 631 | |
| 632 | struct of_bsn_tlv_nexthop_type_vxlan : of_bsn_tlv { |
| 633 | uint16_t type == 94; |
| 634 | uint16_t length; |
| 635 | }; |
| 636 | |
| 637 | struct of_bsn_tlv_multicast_interface_id : of_bsn_tlv { |
| 638 | uint16_t type == 95; |
| 639 | uint16_t length; |
| 640 | uint32_t value; |
| 641 | }; |
| 642 | |
| 643 | struct of_bsn_tlv_use_packet_state : of_bsn_tlv { |
| 644 | uint16_t type == 96; |
| 645 | uint16_t length; |
| 646 | uint8_t value; |
| 647 | }; |
| 648 | |
| 649 | enum ofp_bsn_status(wire_type=uint8_t) { |
| 650 | OFP_BSN_STATUS_DISABLE = 0, |
| 651 | OFP_BSN_STATUS_ENABLE = 1, |
| 652 | }; |
| 653 | |
| 654 | struct of_bsn_tlv_status: of_bsn_tlv { |
| 655 | uint16_t type == 97; |
| 656 | uint16_t length; |
| 657 | enum ofp_bsn_status value; |
| 658 | }; |
| 659 | |
| 660 | struct of_bsn_vlan_mac { |
| 661 | uint16_t vlan_vid; |
| 662 | of_mac_addr_t mac; |
| 663 | }; |
| 664 | |
| 665 | struct of_bsn_tlv_vlan_mac_list : of_bsn_tlv { |
| 666 | uint16_t type == 98; |
| 667 | uint16_t length; |
| 668 | list(of_bsn_vlan_mac_t) key; |
| 669 | }; |
| 670 | |
| 671 | struct of_bsn_tlv_vfi : of_bsn_tlv { |
| 672 | uint16_t type == 99; |
| 673 | uint16_t length; |
| 674 | uint16_t value; |
| 675 | }; |
| 676 | |
| 677 | struct of_bsn_tlv_hash_seed : of_bsn_tlv { |
| 678 | uint16_t type == 100; |
| 679 | uint16_t length; |
| 680 | uint32_t seed1; |
| 681 | uint32_t seed2; |
| 682 | }; |
| 683 | |
| 684 | enum of_bsn_hash_type(wire_type=uint8_t) { |
| 685 | OFP_BSN_HASH_TYPE_L2 = 0, |
| 686 | OFP_BSN_HASH_TYPE_L3 = 1, |
| 687 | OFP_BSN_HASH_TYPE_ENHANCED = 2, |
| 688 | }; |
| 689 | |
| 690 | struct of_bsn_tlv_hash_type : of_bsn_tlv { |
| 691 | uint16_t type == 101; |
| 692 | uint16_t length; |
| 693 | enum of_bsn_hash_type value; |
| 694 | }; |
| 695 | |
| 696 | enum of_bsn_hash_packet_type(wire_type=uint8_t) { |
| 697 | OF_BSN_HASH_PACKET_L2 = 0, |
| 698 | OF_BSN_HASH_PACKET_L2GRE = 1, |
| 699 | OF_BSN_HASH_PACKET_IPV4 = 3, |
| 700 | OF_BSN_HASH_PACKET_IPV6 = 4, |
| 701 | OF_BSN_HASH_PACKET_MPLS = 5, |
| 702 | OF_BSN_HASH_PACKET_SYMMETRIC = 6, |
| 703 | }; |
| 704 | |
| 705 | struct of_bsn_tlv_hash_packet_type : of_bsn_tlv { |
| 706 | uint16_t type == 102; |
| 707 | uint16_t length; |
| 708 | enum of_bsn_hash_packet_type value; |
| 709 | }; |
| 710 | |
| 711 | enum of_bsn_hash_packet_field(wire_type=uint64_t, bitmask=True) { |
| 712 | // 0x1 is unused |
| 713 | OFP_BSN_HASH_FIELD_DST_MAC = 0x2, |
| 714 | OFP_BSN_HASH_FIELD_SRC_MAC = 0x4, |
| 715 | OFP_BSN_HASH_FIELD_ETH_TYPE = 0x8, |
| 716 | OFP_BSN_HASH_FIELD_VLAN_ID = 0x10, |
| 717 | OFP_BSN_HASH_FIELD_INNER_L2 = 0x20, |
| 718 | OFP_BSN_HASH_FIELD_INNER_L3 = 0x40, |
| 719 | OFP_BSN_HASH_FIELD_SRC_IP = 0x80, |
| 720 | OFP_BSN_HASH_FIELD_DST_IP = 0x100, |
| 721 | OFP_BSN_HASH_FIELD_IP_PROTO = 0x200, |
| 722 | OFP_BSN_HASH_FIELD_SRC_L4_PORT = 0x400, |
| 723 | OFP_BSN_HASH_FIELD_DST_L4_PORT = 0x800, |
| 724 | OFP_BSN_HASH_FIELD_MPLS_LABEL1 = 0x1000, |
| 725 | OFP_BSN_HASH_FIELD_MPLS_LABEL2 = 0x2000, |
| 726 | OFP_BSN_HASH_FIELD_MPLS_LABEL3 = 0x4000, |
| 727 | OFP_BSN_HASH_FIELD_MPLS_LABEL_HI_BITS = 0x8000, |
| 728 | OFP_BSN_HASH_FIELD_MPLS_PAYLOAD_SRC_IP = 0x10000, |
| 729 | OFP_BSN_HASH_FIELD_MPLS_PAYLOAD_DST_IP = 0x20000, |
| 730 | OFP_BSN_HASH_FIELD_SYMMETRIC = 0x40000, |
| 731 | }; |
| 732 | |
| 733 | struct of_bsn_tlv_hash_packet_field : of_bsn_tlv { |
| 734 | uint16_t type == 103; |
| 735 | uint16_t length; |
| 736 | enum of_bsn_hash_packet_field value; |
| 737 | }; |
| 738 | |
| 739 | struct of_bsn_tlv_hash_gtp_header_match : of_bsn_tlv { |
| 740 | uint16_t type == 104; |
| 741 | uint16_t length; |
| 742 | uint8_t first_header_byte; |
| 743 | uint8_t first_header_mask; |
| 744 | }; |
| 745 | |
| 746 | enum of_bsn_hash_gtp_port_match(wire_type=uint8_t) { |
| 747 | OF_BSN_HASH_GTP_PORT_MATCH_SRC = 1, |
| 748 | OF_BSN_HASH_GTP_PORT_MATCH_DST = 2, |
| 749 | OF_BSN_HASH_GTP_PORT_MATCH_SRC_OR_DST = 3, |
| 750 | OF_BSN_HASH_GTP_PORT_MATCH_SRC_AND_DST = 4, |
| 751 | }; |
| 752 | |
| 753 | struct of_bsn_tlv_hash_gtp_port_match : of_bsn_tlv { |
| 754 | uint16_t type == 105; |
| 755 | uint16_t length; |
| 756 | enum of_bsn_hash_gtp_port_match match; |
| 757 | uint16_t src_port; |
| 758 | uint16_t dst_port; |
| 759 | }; |
| 760 | |
| 761 | struct of_bsn_tlv_untagged : of_bsn_tlv { |
| 762 | uint16_t type == 106; |
| 763 | uint16_t length; |
| 764 | }; |
| 765 | |
| 766 | struct of_bsn_tlv_vfp_class_id : of_bsn_tlv { |
| 767 | uint16_t type == 107; |
| 768 | uint16_t length; |
| 769 | uint32_t value; |
| 770 | }; |
| 771 | |
| 772 | struct of_bsn_tlv_qos_priority : of_bsn_tlv { |
| 773 | uint16_t type == 108; |
| 774 | uint16_t length; |
| 775 | uint32_t value; |
| 776 | }; |
| 777 | |
| 778 | struct of_bsn_tlv_parent_port : of_bsn_tlv { |
| 779 | uint16_t type == 109; |
| 780 | uint16_t length; |
| 781 | of_port_no_t value; |
| 782 | }; |
| 783 | |
| 784 | struct of_bsn_tlv_loopback_port : of_bsn_tlv { |
| 785 | uint16_t type == 110; |
| 786 | uint16_t length; |
| 787 | of_port_no_t value; |
| 788 | }; |
| 789 | |
| 790 | struct of_bsn_tlv_vpn_key : of_bsn_tlv { |
| 791 | uint16_t type == 111; |
| 792 | uint16_t length; |
| 793 | uint32_t value; |
| 794 | }; |
| 795 | |
| 796 | struct of_bsn_tlv_dscp : of_bsn_tlv { |
| 797 | uint16_t type == 112; |
| 798 | uint16_t length; |
| 799 | uint16_t value; // 0-63 |
| 800 | }; |
| 801 | |
| 802 | struct of_bsn_tlv_ttl : of_bsn_tlv { |
| 803 | uint16_t type == 113; |
| 804 | uint16_t length; |
| 805 | uint16_t value; |
| 806 | }; |
| 807 | |
| 808 | struct of_bsn_tlv_next_hop_mac : of_bsn_tlv { |
| 809 | uint16_t type == 114; |
| 810 | uint16_t length; |
| 811 | of_mac_addr_t value; |
| 812 | }; |
| 813 | |
| 814 | struct of_bsn_tlv_next_hop_ipv4 : of_bsn_tlv { |
| 815 | uint16_t type == 115; |
| 816 | uint16_t length; |
| 817 | of_ipv4_t value; |
| 818 | }; |
| 819 | |
| 820 | struct of_bsn_tlv_rate_limit : of_bsn_tlv { |
| 821 | uint16_t type == 116; |
| 822 | uint16_t length; |
| 823 | uint32_t value; // in Kbps |
| 824 | }; |
| 825 | |
| 826 | struct of_bsn_tlv_vxlan_egress_lag : of_bsn_tlv { |
| 827 | uint16_t type == 117; |
| 828 | uint16_t length; |
| 829 | }; |
| 830 | |
| 831 | struct of_bsn_tlv_cpu_lag : of_bsn_tlv { |
| 832 | uint16_t type == 118; |
| 833 | uint16_t length; |
| 834 | }; |
| 835 | |
| 836 | struct of_bsn_tlv_uint64_list : of_bsn_tlv { |
| 837 | uint16_t type == 119; |
| 838 | uint16_t length; |
| 839 | list(of_uint64_t) value; |
| 840 | }; |
| 841 | |
| 842 | struct of_bsn_tlv_disable_src_mac_check : of_bsn_tlv { |
| 843 | uint16_t type == 120; |
| 844 | uint16_t length; |
| 845 | }; |
| 846 | |
| 847 | struct of_bsn_tlv_drop : of_bsn_tlv { |
| 848 | uint16_t type == 121; |
| 849 | uint16_t length; |
| 850 | }; |
| 851 | |
| 852 | struct of_bsn_tlv_ipv6_prefix : of_bsn_tlv { |
| 853 | uint16_t type == 122; |
| 854 | uint16_t length; |
| 855 | of_ipv6_t value; |
| 856 | uint8_t prefix_length; |
| 857 | }; |
| 858 | |
| 859 | struct of_bsn_tlv_ndp_offload : of_bsn_tlv { |
| 860 | uint16_t type == 123; |
| 861 | uint16_t length; |
| 862 | }; |
| 863 | |
| 864 | struct of_bsn_tlv_ndp_static : of_bsn_tlv { |
| 865 | uint16_t type == 124; |
| 866 | uint16_t length; |
| 867 | }; |
| 868 | |
| 869 | struct of_bsn_tlv_icmpv6_chksum : of_bsn_tlv { |
| 870 | uint16_t type == 125; |
| 871 | uint16_t length; |
| 872 | uint16_t value; |
| 873 | }; |
| 874 | |
| 875 | struct of_bsn_tlv_ipv6_src : of_bsn_tlv { |
| 876 | uint16_t type == 126; |
| 877 | uint16_t length; |
| 878 | of_ipv6_t value; |
| 879 | }; |
| 880 | |
| 881 | struct of_bsn_tlv_ipv6_dst : of_bsn_tlv { |
| 882 | uint16_t type == 127; |
| 883 | uint16_t length; |
| 884 | of_ipv6_t value; |
| 885 | }; |
| 886 | |
| 887 | struct of_bsn_tlv_push_vlan_on_ingress : of_bsn_tlv { |
| 888 | uint16_t type == 128; |
| 889 | uint16_t length; |
| 890 | }; |
| 891 | |
| 892 | // apply_packets and apply_bytes are stat counters, like rx_packet |
| 893 | // identifies packets and bytes applied to some action, for example: |
| 894 | // packets with inet L3/L4 headers for netflow |
| 895 | |
| 896 | struct of_bsn_tlv_apply_packets : of_bsn_tlv { |
| 897 | uint16_t type == 129; |
| 898 | uint16_t length; |
| 899 | uint64_t value; |
| 900 | }; |
| 901 | |
| 902 | struct of_bsn_tlv_apply_bytes : of_bsn_tlv { |
| 903 | uint16_t type == 130; |
| 904 | uint16_t length; |
| 905 | uint64_t value; |
| 906 | }; |
| 907 | |
| 908 | struct of_bsn_tlv_eth_type : of_bsn_tlv { |
| 909 | uint16_t type == 131; |
| 910 | uint16_t length; |
| 911 | uint16_t value; |
| 912 | }; |
| 913 | |
| 914 | struct of_bsn_tlv_ecn : of_bsn_tlv { |
| 915 | uint16_t type == 132; |
| 916 | uint16_t length; |
| 917 | uint8_t value; |
| 918 | }; |
| 919 | |
| 920 | struct of_bsn_tlv_tcp_flags : of_bsn_tlv { |
| 921 | uint16_t type == 133; |
| 922 | uint16_t length; |
| 923 | uint16_t value; |
| 924 | }; |
| 925 | |
| 926 | struct of_bsn_tlv_l3_interface_class_id : of_bsn_tlv { |
| 927 | uint16_t type == 134; |
| 928 | uint16_t length; |
| 929 | uint32_t value; |
| 930 | }; |
| 931 | |
| 932 | struct of_bsn_tlv_l3_src_class_id : of_bsn_tlv { |
| 933 | uint16_t type == 135; |
| 934 | uint16_t length; |
| 935 | uint32_t value; |
| 936 | }; |
| 937 | |
| 938 | struct of_bsn_tlv_l3_dst_class_id : of_bsn_tlv { |
| 939 | uint16_t type == 136; |
| 940 | uint16_t length; |
| 941 | uint32_t value; |
| 942 | }; |
| 943 | |
| 944 | struct of_bsn_tlv_egress_only : of_bsn_tlv { |
| 945 | uint16_t type == 137; |
| 946 | uint16_t length; |
| 947 | }; |
| 948 | |
| 949 | struct of_bsn_tlv_ingress_port_group_id : of_bsn_tlv { |
| 950 | uint16_t type == 138; |
| 951 | uint16_t length; |
| 952 | uint32_t value; |
| 953 | }; |
| 954 | |
| 955 | struct of_bsn_tlv_egress_port_group_id : of_bsn_tlv { |
| 956 | uint16_t type == 139; |
| 957 | uint16_t length; |
| 958 | uint32_t value; |
| 959 | }; |
| 960 | |
| 961 | struct of_bsn_tlv_data_mask : of_bsn_tlv { |
| 962 | uint16_t type == 140; |
| 963 | uint16_t length; |
| 964 | of_octets_t value; |
| 965 | }; |
| 966 | |
| 967 | enum ofp_bsn_port_usage(wire_type=uint16_t) { |
| 968 | OFP_BSN_PORT_UNUSED = 0, |
| 969 | OFP_BSN_PORT_TRANSMIT_ONLY = 1, |
| 970 | OFP_BSN_PORT_RECEIVE_ONLY = 2, |
| 971 | OFP_BSN_PORT_BIDIRECTION = 3, |
| 972 | }; |
| 973 | |
| 974 | struct of_bsn_tlv_port_usage : of_bsn_tlv { |
| 975 | uint16_t type == 141; |
| 976 | uint16_t length; |
| 977 | enum ofp_bsn_port_usage value; |
| 978 | }; |
| 979 | |
| 980 | enum ofp_bsn_tunnel_type(wire_type=uint64_t, bitmask=True) { |
| 981 | OFP_BSN_TUNNEL_L2GRE = 0x1, |
| 982 | }; |
| 983 | |
| 984 | struct of_bsn_tlv_tunnel_capability : of_bsn_tlv { |
| 985 | uint16_t type == 142; |
| 986 | uint16_t length; |
| 987 | enum ofp_bsn_tunnel_type value; |
| 988 | }; |
| 989 | |
| 990 | enum ofp_bsn_enhanced_hash_type(wire_type=uint64_t, bitmask=True) { |
| 991 | OFP_BSN_ENHANCED_HASH_L2 = 0x1, |
| 992 | OFP_BSN_ENHANCED_HASH_L3 = 0x2, |
| 993 | OFP_BSN_ENHANCED_HASH_L2GRE = 0x4, |
| 994 | OFP_BSN_ENHANCED_HASH_MPLS = 0x8, |
| 995 | OFP_BSN_ENHANCED_HASH_GTP = 0x10, |
| 996 | OFP_BSN_ENHANCED_HASH_SYMMETRIC = 0x20, |
| 997 | }; |
| 998 | |
| 999 | struct of_bsn_tlv_enhanced_hash_capability : of_bsn_tlv { |
| 1000 | uint16_t type == 143; |
| 1001 | uint16_t length; |
| 1002 | enum ofp_bsn_enhanced_hash_type value; |
| 1003 | }; |
| 1004 | |
| 1005 | enum ofp_bsn_auto_negotiation_type(wire_type=uint8_t) { |
| 1006 | OFP_BSN_AUTO_NEGOTIATION_DEFAULT = 0, |
| 1007 | OFP_BSN_AUTO_NEGOTIATION_ENABLE = 1, |
| 1008 | OFP_BSN_AUTO_NEGOTIATION_DISABLE = 2, |
| 1009 | }; |
| 1010 | |
| 1011 | struct of_bsn_tlv_auto_negotiation : of_bsn_tlv { |
| 1012 | uint16_t type == 144; |
| 1013 | uint16_t length; |
| 1014 | enum ofp_bsn_auto_negotiation_type value; |
| 1015 | }; |
| 1016 | |
| 1017 | enum ofp_bsn_hash_algorithm_type(wire_type=uint16_t) { |
| 1018 | OFP_BSN_HASH_ALGORITHM_CRC16XOR8 = 0, |
| 1019 | OFP_BSN_HASH_ALGORITHM_CRC16XOR4 = 1, |
| 1020 | OFP_BSN_HASH_ALGORITHM_CRC16XOR2 = 2, |
| 1021 | OFP_BSN_HASH_ALGORITHM_CRC16XOR1 = 3, |
| 1022 | OFP_BSN_HASH_ALGORITHM_CRC16 = 4, |
| 1023 | OFP_BSN_HASH_ALGORITHM_XOR16 = 5, |
| 1024 | OFP_BSN_HASH_ALGORITHM_CRC16CCITT = 6, |
| 1025 | OFP_BSN_HASH_ALGORITHM_CRC32LO = 7, |
| 1026 | OFP_BSN_HASH_ALGORITHM_CRC32HI = 8, |
| 1027 | }; |
| 1028 | |
| 1029 | struct of_bsn_tlv_hash_algorithm : of_bsn_tlv { |
| 1030 | uint16_t type == 145; |
| 1031 | uint16_t length; |
| 1032 | enum ofp_bsn_hash_algorithm_type value; |
| 1033 | }; |
| 1034 | |
| 1035 | enum ofp_bsn_loopback_mode(wire_type=uint8_t) { |
| 1036 | OFP_BSN_LOOPBACK_MODE_NONE = 0, |
| 1037 | OFP_BSN_LOOPBACK_MODE_MAC = 1, |
| 1038 | OFP_BSN_LOOPBACK_MODE_PHY = 2, |
| 1039 | OFP_BSN_LOOPBACK_MODE_PHY_REMOTE = 3, |
| 1040 | }; |
| 1041 | |
| 1042 | struct of_bsn_tlv_loopback_mode : of_bsn_tlv { |
| 1043 | uint16_t type == 146; |
| 1044 | uint16_t length; |
| 1045 | enum ofp_bsn_loopback_mode value; |
| 1046 | }; |
| 1047 | |
| 1048 | struct of_bsn_tlv_no_arp_response : of_bsn_tlv { |
| 1049 | uint16_t type == 147; |
| 1050 | uint16_t length; |
| 1051 | }; |
| 1052 | |
| 1053 | struct of_bsn_tlv_no_ns_response : of_bsn_tlv { |
| 1054 | uint16_t type == 148; |
| 1055 | uint16_t length; |
| 1056 | }; |
| 1057 | |
| 1058 | enum ofp_bsn_forward_error_correction_type(wire_type=uint8_t) { |
| 1059 | OFP_BSN_FORWARD_ERROR_CORRECTION_DEFAULT = 0, |
| 1060 | OFP_BSN_FORWARD_ERROR_CORRECTION_ENABLE = 1, |
| 1061 | OFP_BSN_FORWARD_ERROR_CORRECTION_DISABLE = 2, |
| 1062 | }; |
| 1063 | |
| 1064 | struct of_bsn_tlv_forward_error_correction : of_bsn_tlv { |
| 1065 | uint16_t type == 149; |
| 1066 | uint16_t length; |
| 1067 | enum ofp_bsn_forward_error_correction_type value; |
| 1068 | }; |
| 1069 | |
| 1070 | struct of_bsn_tlv_optics_always_enabled : of_bsn_tlv { |
| 1071 | uint16_t type == 150; |
| 1072 | uint16_t length; |
| 1073 | }; |
| 1074 | |
| 1075 | struct of_bsn_tlv_force_link_up : of_bsn_tlv { |
| 1076 | uint16_t type == 151; |
| 1077 | uint16_t length; |
Harshmeet Singh | 916ead2 | 2015-08-21 14:31:33 -0700 | [diff] [blame] | 1078 | }; |