Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1 | { |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 2 | "header_types" : [ |
| 3 | { |
| 4 | "name" : "scalars_0", |
| 5 | "id" : 0, |
| 6 | "fields" : [ |
| 7 | ["tmp", 32, false], |
| 8 | ["tmp_0", 32, false], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 9 | ["port_meters_ingress_ingress_color_0", 8, false], |
| 10 | ["host_meter_control_meter_tag_0", 8, false], |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 11 | ["tmp_1", 32, false], |
| 12 | ["tmp_2", 32, false], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 13 | ["port_meters_egress_egress_color_0", 8, false], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 14 | ["local_metadata_t.l4_src_port", 16, false], |
| 15 | ["local_metadata_t.l4_dst_port", 16, false], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 16 | ["local_metadata_t.next_hop_id", 16, false] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 17 | ] |
| 18 | }, |
| 19 | { |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 20 | "name" : "standard_metadata", |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 21 | "id" : 1, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 22 | "fields" : [ |
| 23 | ["ingress_port", 9, false], |
| 24 | ["egress_spec", 9, false], |
| 25 | ["egress_port", 9, false], |
| 26 | ["clone_spec", 32, false], |
| 27 | ["instance_type", 32, false], |
| 28 | ["drop", 1, false], |
| 29 | ["recirculate_port", 16, false], |
| 30 | ["packet_length", 32, false], |
| 31 | ["enq_timestamp", 32, false], |
| 32 | ["enq_qdepth", 19, false], |
| 33 | ["deq_timedelta", 32, false], |
| 34 | ["deq_qdepth", 19, false], |
| 35 | ["ingress_global_timestamp", 48, false], |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 36 | ["egress_global_timestamp", 48, false], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 37 | ["lf_field_list", 32, false], |
| 38 | ["mcast_grp", 16, false], |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 39 | ["resubmit_flag", 32, false], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 40 | ["egress_rid", 16, false], |
| 41 | ["checksum_error", 1, false], |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 42 | ["recirculate_flag", 32, false], |
Carmelo Cascone | b0f45fe | 2018-10-11 08:31:59 -0700 | [diff] [blame] | 43 | ["parser_error", 32, false], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 44 | ["_padding_0", 5, false] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 45 | ] |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 46 | }, |
| 47 | { |
| 48 | "name" : "packet_out_header_t", |
| 49 | "id" : 2, |
| 50 | "fields" : [ |
| 51 | ["egress_port", 9, false], |
| 52 | ["_padding", 7, false] |
| 53 | ] |
| 54 | }, |
| 55 | { |
| 56 | "name" : "packet_in_header_t", |
| 57 | "id" : 3, |
| 58 | "fields" : [ |
| 59 | ["ingress_port", 9, false], |
| 60 | ["_padding", 7, false] |
| 61 | ] |
| 62 | }, |
| 63 | { |
| 64 | "name" : "ethernet_t", |
| 65 | "id" : 4, |
| 66 | "fields" : [ |
| 67 | ["dst_addr", 48, false], |
| 68 | ["src_addr", 48, false], |
| 69 | ["ether_type", 16, false] |
| 70 | ] |
| 71 | }, |
| 72 | { |
| 73 | "name" : "ipv4_t", |
| 74 | "id" : 5, |
| 75 | "fields" : [ |
| 76 | ["version", 4, false], |
| 77 | ["ihl", 4, false], |
| 78 | ["dscp", 6, false], |
| 79 | ["ecn", 2, false], |
| 80 | ["len", 16, false], |
| 81 | ["identification", 16, false], |
| 82 | ["flags", 3, false], |
| 83 | ["frag_offset", 13, false], |
| 84 | ["ttl", 8, false], |
| 85 | ["protocol", 8, false], |
| 86 | ["hdr_checksum", 16, false], |
| 87 | ["src_addr", 32, false], |
| 88 | ["dst_addr", 32, false] |
| 89 | ] |
| 90 | }, |
| 91 | { |
| 92 | "name" : "tcp_t", |
| 93 | "id" : 6, |
| 94 | "fields" : [ |
| 95 | ["src_port", 16, false], |
| 96 | ["dst_port", 16, false], |
| 97 | ["seq_no", 32, false], |
| 98 | ["ack_no", 32, false], |
| 99 | ["data_offset", 4, false], |
| 100 | ["res", 3, false], |
| 101 | ["ecn", 3, false], |
| 102 | ["ctrl", 6, false], |
| 103 | ["window", 16, false], |
| 104 | ["checksum", 16, false], |
| 105 | ["urgent_ptr", 16, false] |
| 106 | ] |
| 107 | }, |
| 108 | { |
| 109 | "name" : "udp_t", |
| 110 | "id" : 7, |
| 111 | "fields" : [ |
| 112 | ["src_port", 16, false], |
| 113 | ["dst_port", 16, false], |
| 114 | ["length_", 16, false], |
| 115 | ["checksum", 16, false] |
| 116 | ] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 117 | } |
| 118 | ], |
| 119 | "headers" : [ |
| 120 | { |
| 121 | "name" : "scalars", |
| 122 | "id" : 0, |
| 123 | "header_type" : "scalars_0", |
| 124 | "metadata" : true, |
| 125 | "pi_omit" : true |
| 126 | }, |
| 127 | { |
| 128 | "name" : "standard_metadata", |
| 129 | "id" : 1, |
| 130 | "header_type" : "standard_metadata", |
| 131 | "metadata" : true, |
| 132 | "pi_omit" : true |
| 133 | }, |
| 134 | { |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 135 | "name" : "packet_out", |
Jonghwan Hyun | 4a9a671 | 2017-11-13 14:43:55 -0800 | [diff] [blame] | 136 | "id" : 2, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 137 | "header_type" : "packet_out_header_t", |
| 138 | "metadata" : false, |
| 139 | "pi_omit" : true |
| 140 | }, |
| 141 | { |
| 142 | "name" : "packet_in", |
Jonghwan Hyun | 4a9a671 | 2017-11-13 14:43:55 -0800 | [diff] [blame] | 143 | "id" : 3, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 144 | "header_type" : "packet_in_header_t", |
| 145 | "metadata" : false, |
| 146 | "pi_omit" : true |
Jonghwan Hyun | 4a9a671 | 2017-11-13 14:43:55 -0800 | [diff] [blame] | 147 | }, |
| 148 | { |
| 149 | "name" : "ethernet", |
| 150 | "id" : 4, |
| 151 | "header_type" : "ethernet_t", |
| 152 | "metadata" : false, |
| 153 | "pi_omit" : true |
| 154 | }, |
| 155 | { |
| 156 | "name" : "ipv4", |
| 157 | "id" : 5, |
| 158 | "header_type" : "ipv4_t", |
| 159 | "metadata" : false, |
| 160 | "pi_omit" : true |
| 161 | }, |
| 162 | { |
| 163 | "name" : "tcp", |
| 164 | "id" : 6, |
| 165 | "header_type" : "tcp_t", |
| 166 | "metadata" : false, |
| 167 | "pi_omit" : true |
| 168 | }, |
| 169 | { |
| 170 | "name" : "udp", |
| 171 | "id" : 7, |
| 172 | "header_type" : "udp_t", |
| 173 | "metadata" : false, |
| 174 | "pi_omit" : true |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 175 | } |
| 176 | ], |
| 177 | "header_stacks" : [], |
| 178 | "header_union_types" : [], |
| 179 | "header_unions" : [], |
| 180 | "header_union_stacks" : [], |
| 181 | "field_lists" : [], |
Carmelo Cascone | b0f45fe | 2018-10-11 08:31:59 -0700 | [diff] [blame] | 182 | "errors" : [ |
| 183 | ["NoError", 1], |
| 184 | ["PacketTooShort", 2], |
| 185 | ["NoMatch", 3], |
| 186 | ["StackOutOfBounds", 4], |
| 187 | ["HeaderTooShort", 5], |
| 188 | ["ParserTimeout", 6] |
| 189 | ], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 190 | "enums" : [], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 191 | "parsers" : [ |
| 192 | { |
| 193 | "name" : "parser", |
| 194 | "id" : 0, |
| 195 | "init_state" : "start", |
| 196 | "parse_states" : [ |
| 197 | { |
| 198 | "name" : "start", |
| 199 | "id" : 0, |
| 200 | "parser_ops" : [], |
| 201 | "transitions" : [ |
| 202 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 203 | "type" : "hexstr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 204 | "value" : "0x00ff", |
| 205 | "mask" : null, |
| 206 | "next_state" : "parse_packet_out" |
| 207 | }, |
| 208 | { |
| 209 | "value" : "default", |
| 210 | "mask" : null, |
| 211 | "next_state" : "parse_ethernet" |
| 212 | } |
| 213 | ], |
| 214 | "transition_key" : [ |
| 215 | { |
| 216 | "type" : "field", |
| 217 | "value" : ["standard_metadata", "ingress_port"] |
| 218 | } |
| 219 | ] |
| 220 | }, |
| 221 | { |
| 222 | "name" : "parse_packet_out", |
| 223 | "id" : 1, |
| 224 | "parser_ops" : [ |
| 225 | { |
| 226 | "parameters" : [ |
| 227 | { |
| 228 | "type" : "regular", |
| 229 | "value" : "packet_out" |
| 230 | } |
| 231 | ], |
| 232 | "op" : "extract" |
| 233 | } |
| 234 | ], |
| 235 | "transitions" : [ |
| 236 | { |
| 237 | "value" : "default", |
| 238 | "mask" : null, |
| 239 | "next_state" : "parse_ethernet" |
| 240 | } |
| 241 | ], |
| 242 | "transition_key" : [] |
| 243 | }, |
| 244 | { |
| 245 | "name" : "parse_ethernet", |
| 246 | "id" : 2, |
| 247 | "parser_ops" : [ |
| 248 | { |
| 249 | "parameters" : [ |
| 250 | { |
| 251 | "type" : "regular", |
| 252 | "value" : "ethernet" |
| 253 | } |
| 254 | ], |
| 255 | "op" : "extract" |
| 256 | } |
| 257 | ], |
| 258 | "transitions" : [ |
| 259 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 260 | "type" : "hexstr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 261 | "value" : "0x0800", |
| 262 | "mask" : null, |
| 263 | "next_state" : "parse_ipv4" |
| 264 | }, |
| 265 | { |
| 266 | "value" : "default", |
| 267 | "mask" : null, |
| 268 | "next_state" : null |
| 269 | } |
| 270 | ], |
| 271 | "transition_key" : [ |
| 272 | { |
| 273 | "type" : "field", |
| 274 | "value" : ["ethernet", "ether_type"] |
| 275 | } |
| 276 | ] |
| 277 | }, |
| 278 | { |
| 279 | "name" : "parse_ipv4", |
| 280 | "id" : 3, |
| 281 | "parser_ops" : [ |
| 282 | { |
| 283 | "parameters" : [ |
| 284 | { |
| 285 | "type" : "regular", |
| 286 | "value" : "ipv4" |
| 287 | } |
| 288 | ], |
| 289 | "op" : "extract" |
| 290 | } |
| 291 | ], |
| 292 | "transitions" : [ |
| 293 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 294 | "type" : "hexstr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 295 | "value" : "0x06", |
| 296 | "mask" : null, |
| 297 | "next_state" : "parse_tcp" |
| 298 | }, |
| 299 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 300 | "type" : "hexstr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 301 | "value" : "0x11", |
| 302 | "mask" : null, |
| 303 | "next_state" : "parse_udp" |
| 304 | }, |
| 305 | { |
| 306 | "value" : "default", |
| 307 | "mask" : null, |
| 308 | "next_state" : null |
| 309 | } |
| 310 | ], |
| 311 | "transition_key" : [ |
| 312 | { |
| 313 | "type" : "field", |
| 314 | "value" : ["ipv4", "protocol"] |
| 315 | } |
| 316 | ] |
| 317 | }, |
| 318 | { |
| 319 | "name" : "parse_tcp", |
| 320 | "id" : 4, |
| 321 | "parser_ops" : [ |
| 322 | { |
| 323 | "parameters" : [ |
| 324 | { |
| 325 | "type" : "regular", |
| 326 | "value" : "tcp" |
| 327 | } |
| 328 | ], |
| 329 | "op" : "extract" |
| 330 | }, |
| 331 | { |
| 332 | "parameters" : [ |
| 333 | { |
| 334 | "type" : "field", |
| 335 | "value" : ["scalars", "local_metadata_t.l4_src_port"] |
| 336 | }, |
| 337 | { |
| 338 | "type" : "field", |
| 339 | "value" : ["tcp", "src_port"] |
| 340 | } |
| 341 | ], |
| 342 | "op" : "set" |
| 343 | }, |
| 344 | { |
| 345 | "parameters" : [ |
| 346 | { |
| 347 | "type" : "field", |
| 348 | "value" : ["scalars", "local_metadata_t.l4_dst_port"] |
| 349 | }, |
| 350 | { |
| 351 | "type" : "field", |
| 352 | "value" : ["tcp", "dst_port"] |
| 353 | } |
| 354 | ], |
| 355 | "op" : "set" |
| 356 | } |
| 357 | ], |
| 358 | "transitions" : [ |
| 359 | { |
| 360 | "value" : "default", |
| 361 | "mask" : null, |
| 362 | "next_state" : null |
| 363 | } |
| 364 | ], |
| 365 | "transition_key" : [] |
| 366 | }, |
| 367 | { |
| 368 | "name" : "parse_udp", |
| 369 | "id" : 5, |
| 370 | "parser_ops" : [ |
| 371 | { |
| 372 | "parameters" : [ |
| 373 | { |
| 374 | "type" : "regular", |
| 375 | "value" : "udp" |
| 376 | } |
| 377 | ], |
| 378 | "op" : "extract" |
| 379 | }, |
| 380 | { |
| 381 | "parameters" : [ |
| 382 | { |
| 383 | "type" : "field", |
| 384 | "value" : ["scalars", "local_metadata_t.l4_src_port"] |
| 385 | }, |
| 386 | { |
| 387 | "type" : "field", |
| 388 | "value" : ["udp", "src_port"] |
| 389 | } |
| 390 | ], |
| 391 | "op" : "set" |
| 392 | }, |
| 393 | { |
| 394 | "parameters" : [ |
| 395 | { |
| 396 | "type" : "field", |
| 397 | "value" : ["scalars", "local_metadata_t.l4_dst_port"] |
| 398 | }, |
| 399 | { |
| 400 | "type" : "field", |
| 401 | "value" : ["udp", "dst_port"] |
| 402 | } |
| 403 | ], |
| 404 | "op" : "set" |
| 405 | } |
| 406 | ], |
| 407 | "transitions" : [ |
| 408 | { |
| 409 | "value" : "default", |
| 410 | "mask" : null, |
| 411 | "next_state" : null |
| 412 | } |
| 413 | ], |
| 414 | "transition_key" : [] |
| 415 | } |
| 416 | ] |
| 417 | } |
| 418 | ], |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 419 | "parse_vsets" : [], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 420 | "deparsers" : [ |
| 421 | { |
| 422 | "name" : "deparser", |
| 423 | "id" : 0, |
| 424 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 425 | "filename" : "include/parsers.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 426 | "line" : 72, |
| 427 | "column" : 8, |
| 428 | "source_fragment" : "deparser" |
| 429 | }, |
| 430 | "order" : ["packet_in", "ethernet", "ipv4", "tcp", "udp"] |
| 431 | } |
| 432 | ], |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 433 | "meter_arrays" : [ |
| 434 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 435 | "name" : "ingress.port_meters_ingress.ingress_port_meter", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 436 | "id" : 0, |
| 437 | "source_info" : { |
| 438 | "filename" : "include/port_meters.p4", |
| 439 | "line" : 23, |
| 440 | "column" : 32, |
| 441 | "source_fragment" : "ingress_port_meter" |
| 442 | }, |
| 443 | "is_direct" : false, |
| 444 | "size" : 511, |
| 445 | "rate_count" : 2, |
| 446 | "type" : "bytes" |
| 447 | }, |
| 448 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 449 | "name" : "ingress.host_meter_control.host_meter", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 450 | "id" : 1, |
| 451 | "source_info" : { |
| 452 | "filename" : "include/host_meter_table.p4", |
| 453 | "line" : 27, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 454 | "column" : 46, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 455 | "source_fragment" : "host_meter" |
| 456 | }, |
| 457 | "is_direct" : true, |
| 458 | "rate_count" : 2, |
| 459 | "type" : "bytes", |
| 460 | "size" : 1024, |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 461 | "binding" : "ingress.host_meter_control.host_meter_table", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 462 | "result_target" : ["scalars", "host_meter_control_meter_tag_0"] |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 463 | }, |
| 464 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 465 | "name" : "egress.port_meters_egress.egress_port_meter", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 466 | "id" : 2, |
| 467 | "source_info" : { |
| 468 | "filename" : "include/port_meters.p4", |
| 469 | "line" : 37, |
| 470 | "column" : 32, |
| 471 | "source_fragment" : "egress_port_meter" |
| 472 | }, |
| 473 | "is_direct" : false, |
| 474 | "size" : 511, |
| 475 | "rate_count" : 2, |
| 476 | "type" : "bytes" |
| 477 | } |
| 478 | ], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 479 | "counter_arrays" : [ |
| 480 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 481 | "name" : "ingress.port_counters_ingress.ingress_port_counter", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 482 | "id" : 0, |
| 483 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 484 | "filename" : "include/port_counters.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 485 | "line" : 26, |
| 486 | "column" : 38, |
| 487 | "source_fragment" : "ingress_port_counter" |
| 488 | }, |
| 489 | "size" : 511, |
| 490 | "is_direct" : false |
| 491 | }, |
| 492 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 493 | "name" : "ingress.table0_control.table0_counter", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 494 | "id" : 1, |
| 495 | "is_direct" : true, |
Carmelo Cascone | b0f45fe | 2018-10-11 08:31:59 -0700 | [diff] [blame] | 496 | "binding" : "ingress.table0_control.table0", |
| 497 | "source_info" : { |
| 498 | "filename" : "include/table0.p4", |
| 499 | "line" : 27, |
| 500 | "column" : 50, |
| 501 | "source_fragment" : "table0_counter" |
| 502 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 503 | }, |
| 504 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 505 | "name" : "ingress.wcmp_control.wcmp_table_counter", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 506 | "id" : 2, |
| 507 | "is_direct" : true, |
Carmelo Cascone | b0f45fe | 2018-10-11 08:31:59 -0700 | [diff] [blame] | 508 | "binding" : "ingress.wcmp_control.wcmp_table", |
| 509 | "source_info" : { |
| 510 | "filename" : "include/wcmp.p4", |
| 511 | "line" : 27, |
| 512 | "column" : 50, |
| 513 | "source_fragment" : "wcmp_table_counter" |
| 514 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 515 | }, |
| 516 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 517 | "name" : "egress.port_counters_egress.egress_port_counter", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 518 | "id" : 3, |
| 519 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 520 | "filename" : "include/port_counters.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 521 | "line" : 36, |
| 522 | "column" : 38, |
| 523 | "source_fragment" : "egress_port_counter" |
| 524 | }, |
| 525 | "size" : 511, |
| 526 | "is_direct" : false |
| 527 | } |
| 528 | ], |
| 529 | "register_arrays" : [], |
| 530 | "calculations" : [], |
| 531 | "learn_lists" : [], |
| 532 | "actions" : [ |
| 533 | { |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 534 | "name" : "_drop", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 535 | "id" : 0, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 536 | "runtime_data" : [], |
| 537 | "primitives" : [ |
| 538 | { |
| 539 | "op" : "drop", |
| 540 | "parameters" : [], |
| 541 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 542 | "filename" : "include/actions.p4", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 543 | "line" : 24, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 544 | "column" : 4, |
| 545 | "source_fragment" : "mark_to_drop()" |
| 546 | } |
| 547 | } |
| 548 | ] |
| 549 | }, |
| 550 | { |
| 551 | "name" : "NoAction", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 552 | "id" : 1, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 553 | "runtime_data" : [], |
| 554 | "primitives" : [] |
| 555 | }, |
| 556 | { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 557 | "name" : "NoAction", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 558 | "id" : 2, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 559 | "runtime_data" : [], |
| 560 | "primitives" : [] |
| 561 | }, |
| 562 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 563 | "name" : "ingress.table0_control.set_next_hop_id", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 564 | "id" : 3, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 565 | "runtime_data" : [ |
| 566 | { |
| 567 | "name" : "next_hop_id", |
| 568 | "bitwidth" : 16 |
| 569 | } |
| 570 | ], |
| 571 | "primitives" : [ |
| 572 | { |
| 573 | "op" : "assign", |
| 574 | "parameters" : [ |
| 575 | { |
| 576 | "type" : "field", |
| 577 | "value" : ["scalars", "local_metadata_t.next_hop_id"] |
| 578 | }, |
| 579 | { |
| 580 | "type" : "runtime_data", |
| 581 | "value" : 0 |
| 582 | } |
| 583 | ], |
| 584 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 585 | "filename" : "include/table0.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 586 | "line" : 30, |
| 587 | "column" : 8, |
| 588 | "source_fragment" : "local_metadata.next_hop_id = next_hop_id" |
| 589 | } |
| 590 | } |
| 591 | ] |
| 592 | }, |
| 593 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 594 | "name" : "ingress.table0_control.send_to_cpu", |
| 595 | "id" : 4, |
| 596 | "runtime_data" : [], |
| 597 | "primitives" : [ |
| 598 | { |
| 599 | "op" : "assign", |
| 600 | "parameters" : [ |
| 601 | { |
| 602 | "type" : "field", |
| 603 | "value" : ["standard_metadata", "egress_spec"] |
| 604 | }, |
| 605 | { |
| 606 | "type" : "hexstr", |
| 607 | "value" : "0x00ff" |
| 608 | } |
| 609 | ], |
| 610 | "source_info" : { |
| 611 | "filename" : "include/defines.p4", |
| 612 | "line" : 28, |
| 613 | "column" : 24, |
| 614 | "source_fragment" : "255; ..." |
| 615 | } |
| 616 | } |
| 617 | ] |
| 618 | }, |
| 619 | { |
| 620 | "name" : "ingress.table0_control.set_egress_port", |
| 621 | "id" : 5, |
| 622 | "runtime_data" : [ |
| 623 | { |
| 624 | "name" : "port", |
| 625 | "bitwidth" : 9 |
| 626 | } |
| 627 | ], |
| 628 | "primitives" : [ |
| 629 | { |
| 630 | "op" : "assign", |
| 631 | "parameters" : [ |
| 632 | { |
| 633 | "type" : "field", |
| 634 | "value" : ["standard_metadata", "egress_spec"] |
| 635 | }, |
| 636 | { |
| 637 | "type" : "runtime_data", |
| 638 | "value" : 0 |
| 639 | } |
| 640 | ], |
| 641 | "source_info" : { |
| 642 | "filename" : "include/table0.p4", |
| 643 | "line" : 38, |
| 644 | "column" : 8, |
| 645 | "source_fragment" : "standard_metadata.egress_spec = port" |
| 646 | } |
| 647 | } |
| 648 | ] |
| 649 | }, |
| 650 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 651 | "name" : "ingress.host_meter_control.read_meter", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 652 | "id" : 6, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 653 | "runtime_data" : [], |
| 654 | "primitives" : [] |
| 655 | }, |
| 656 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 657 | "name" : "ingress.wcmp_control.set_egress_port", |
| 658 | "id" : 7, |
| 659 | "runtime_data" : [ |
| 660 | { |
| 661 | "name" : "port", |
| 662 | "bitwidth" : 9 |
| 663 | } |
| 664 | ], |
| 665 | "primitives" : [ |
| 666 | { |
| 667 | "op" : "assign", |
| 668 | "parameters" : [ |
| 669 | { |
| 670 | "type" : "field", |
| 671 | "value" : ["standard_metadata", "egress_spec"] |
| 672 | }, |
| 673 | { |
| 674 | "type" : "runtime_data", |
| 675 | "value" : 0 |
| 676 | } |
| 677 | ], |
| 678 | "source_info" : { |
| 679 | "filename" : "include/wcmp.p4", |
| 680 | "line" : 31, |
| 681 | "column" : 8, |
| 682 | "source_fragment" : "standard_metadata.egress_spec = port" |
| 683 | } |
| 684 | } |
| 685 | ] |
| 686 | }, |
| 687 | { |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 688 | "name" : "act", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 689 | "id" : 8, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 690 | "runtime_data" : [], |
| 691 | "primitives" : [ |
| 692 | { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 693 | "op" : "drop", |
| 694 | "parameters" : [], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 695 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 696 | "filename" : "include/port_meters.p4", |
| 697 | "line" : 29, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 698 | "column" : 12, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 699 | "source_fragment" : "mark_to_drop()" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 700 | } |
| 701 | } |
| 702 | ] |
| 703 | }, |
| 704 | { |
| 705 | "name" : "act_0", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 706 | "id" : 9, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 707 | "runtime_data" : [], |
| 708 | "primitives" : [ |
| 709 | { |
| 710 | "op" : "assign", |
| 711 | "parameters" : [ |
| 712 | { |
| 713 | "type" : "field", |
| 714 | "value" : ["scalars", "tmp"] |
| 715 | }, |
| 716 | { |
| 717 | "type" : "expression", |
| 718 | "value" : { |
| 719 | "type" : "expression", |
| 720 | "value" : { |
| 721 | "op" : "&", |
| 722 | "left" : { |
| 723 | "type" : "field", |
| 724 | "value" : ["standard_metadata", "ingress_port"] |
| 725 | }, |
| 726 | "right" : { |
| 727 | "type" : "hexstr", |
| 728 | "value" : "0xffffffff" |
| 729 | } |
| 730 | } |
| 731 | } |
| 732 | } |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 733 | ], |
| 734 | "source_info" : { |
| 735 | "filename" : "include/port_counters.p4", |
| 736 | "line" : 29, |
| 737 | "column" : 35, |
| 738 | "source_fragment" : "(bit<32>) standard_metadata.ingress_port" |
| 739 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 740 | }, |
| 741 | { |
| 742 | "op" : "count", |
| 743 | "parameters" : [ |
| 744 | { |
| 745 | "type" : "counter_array", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 746 | "value" : "ingress.port_counters_ingress.ingress_port_counter" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 747 | }, |
| 748 | { |
| 749 | "type" : "field", |
| 750 | "value" : ["scalars", "tmp"] |
| 751 | } |
| 752 | ], |
| 753 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 754 | "filename" : "include/port_counters.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 755 | "line" : 29, |
| 756 | "column" : 8, |
| 757 | "source_fragment" : "ingress_port_counter.count((bit<32>) standard_metadata.ingress_port)" |
| 758 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 759 | }, |
| 760 | { |
| 761 | "op" : "assign", |
| 762 | "parameters" : [ |
| 763 | { |
| 764 | "type" : "field", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 765 | "value" : ["scalars", "tmp_0"] |
| 766 | }, |
| 767 | { |
| 768 | "type" : "expression", |
| 769 | "value" : { |
| 770 | "type" : "expression", |
| 771 | "value" : { |
| 772 | "op" : "&", |
| 773 | "left" : { |
| 774 | "type" : "field", |
| 775 | "value" : ["standard_metadata", "ingress_port"] |
| 776 | }, |
| 777 | "right" : { |
| 778 | "type" : "hexstr", |
| 779 | "value" : "0xffffffff" |
| 780 | } |
| 781 | } |
| 782 | } |
| 783 | } |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 784 | ], |
| 785 | "source_info" : { |
| 786 | "filename" : "include/port_meters.p4", |
| 787 | "line" : 27, |
| 788 | "column" : 53, |
| 789 | "source_fragment" : "(bit<32>)standard_metadata.ingress_port" |
| 790 | } |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 791 | }, |
| 792 | { |
| 793 | "op" : "execute_meter", |
| 794 | "parameters" : [ |
| 795 | { |
| 796 | "type" : "meter_array", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 797 | "value" : "ingress.port_meters_ingress.ingress_port_meter" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 798 | }, |
| 799 | { |
| 800 | "type" : "field", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 801 | "value" : ["scalars", "tmp_0"] |
| 802 | }, |
| 803 | { |
| 804 | "type" : "field", |
| 805 | "value" : ["scalars", "port_meters_ingress_ingress_color_0"] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 806 | } |
| 807 | ], |
| 808 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 809 | "filename" : "include/port_meters.p4", |
| 810 | "line" : 27, |
| 811 | "column" : 8, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 812 | "source_fragment" : "ingress_port_meter.execute_meter<MeterColor>((bit<32>)standard_metadata.ingress_port, ingress_color)" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 813 | } |
| 814 | } |
| 815 | ] |
| 816 | }, |
| 817 | { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 818 | "name" : "act_1", |
| 819 | "id" : 10, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 820 | "runtime_data" : [], |
| 821 | "primitives" : [ |
| 822 | { |
| 823 | "op" : "assign", |
| 824 | "parameters" : [ |
| 825 | { |
| 826 | "type" : "field", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 827 | "value" : ["standard_metadata", "egress_spec"] |
| 828 | }, |
| 829 | { |
| 830 | "type" : "field", |
| 831 | "value" : ["packet_out", "egress_port"] |
| 832 | } |
| 833 | ], |
| 834 | "source_info" : { |
| 835 | "filename" : "include/packet_io.p4", |
| 836 | "line" : 27, |
| 837 | "column" : 12, |
| 838 | "source_fragment" : "standard_metadata.egress_spec = hdr.packet_out.egress_port" |
| 839 | } |
| 840 | }, |
| 841 | { |
| 842 | "op" : "remove_header", |
| 843 | "parameters" : [ |
| 844 | { |
| 845 | "type" : "header", |
| 846 | "value" : "packet_out" |
| 847 | } |
| 848 | ], |
| 849 | "source_info" : { |
| 850 | "filename" : "include/packet_io.p4", |
| 851 | "line" : 28, |
| 852 | "column" : 12, |
| 853 | "source_fragment" : "hdr.packet_out.setInvalid()" |
| 854 | } |
| 855 | } |
| 856 | ] |
| 857 | }, |
| 858 | { |
| 859 | "name" : "act_2", |
| 860 | "id" : 11, |
| 861 | "runtime_data" : [], |
| 862 | "primitives" : [ |
| 863 | { |
| 864 | "op" : "assign", |
| 865 | "parameters" : [ |
| 866 | { |
| 867 | "type" : "field", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 868 | "value" : ["scalars", "host_meter_control_meter_tag_0"] |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 869 | }, |
| 870 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 871 | "type" : "hexstr", |
| 872 | "value" : "0x00" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 873 | } |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 874 | ], |
| 875 | "source_info" : { |
| 876 | "filename" : "include/defines.p4", |
| 877 | "line" : 31, |
| 878 | "column" : 36, |
| 879 | "source_fragment" : "8w0; ..." |
| 880 | } |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 881 | } |
| 882 | ] |
| 883 | }, |
| 884 | { |
| 885 | "name" : "act_3", |
| 886 | "id" : 12, |
| 887 | "runtime_data" : [], |
| 888 | "primitives" : [ |
| 889 | { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 890 | "op" : "drop", |
| 891 | "parameters" : [], |
| 892 | "source_info" : { |
| 893 | "filename" : "include/host_meter_table.p4", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 894 | "line" : 48, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 895 | "column" : 12, |
| 896 | "source_fragment" : "mark_to_drop()" |
| 897 | } |
| 898 | } |
| 899 | ] |
| 900 | }, |
| 901 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 902 | "name" : "act_4", |
| 903 | "id" : 13, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 904 | "runtime_data" : [], |
| 905 | "primitives" : [ |
| 906 | { |
| 907 | "op" : "drop", |
| 908 | "parameters" : [], |
| 909 | "source_info" : { |
| 910 | "filename" : "include/port_meters.p4", |
| 911 | "line" : 43, |
| 912 | "column" : 12, |
| 913 | "source_fragment" : "mark_to_drop()" |
| 914 | } |
| 915 | } |
| 916 | ] |
| 917 | }, |
| 918 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 919 | "name" : "act_5", |
| 920 | "id" : 14, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 921 | "runtime_data" : [], |
| 922 | "primitives" : [ |
| 923 | { |
| 924 | "op" : "assign", |
| 925 | "parameters" : [ |
| 926 | { |
| 927 | "type" : "field", |
| 928 | "value" : ["scalars", "tmp_1"] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 929 | }, |
| 930 | { |
| 931 | "type" : "expression", |
| 932 | "value" : { |
| 933 | "type" : "expression", |
| 934 | "value" : { |
| 935 | "op" : "&", |
| 936 | "left" : { |
| 937 | "type" : "field", |
| 938 | "value" : ["standard_metadata", "egress_port"] |
| 939 | }, |
| 940 | "right" : { |
| 941 | "type" : "hexstr", |
| 942 | "value" : "0xffffffff" |
| 943 | } |
| 944 | } |
| 945 | } |
| 946 | } |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 947 | ], |
| 948 | "source_info" : { |
| 949 | "filename" : "include/port_counters.p4", |
| 950 | "line" : 39, |
| 951 | "column" : 34, |
| 952 | "source_fragment" : "(bit<32>) standard_metadata.egress_port" |
| 953 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 954 | }, |
| 955 | { |
| 956 | "op" : "count", |
| 957 | "parameters" : [ |
| 958 | { |
| 959 | "type" : "counter_array", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 960 | "value" : "egress.port_counters_egress.egress_port_counter" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 961 | }, |
| 962 | { |
| 963 | "type" : "field", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 964 | "value" : ["scalars", "tmp_1"] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 965 | } |
| 966 | ], |
| 967 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 968 | "filename" : "include/port_counters.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 969 | "line" : 39, |
| 970 | "column" : 8, |
| 971 | "source_fragment" : "egress_port_counter.count((bit<32>) standard_metadata.egress_port)" |
| 972 | } |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 973 | }, |
| 974 | { |
| 975 | "op" : "assign", |
| 976 | "parameters" : [ |
| 977 | { |
| 978 | "type" : "field", |
| 979 | "value" : ["scalars", "tmp_2"] |
| 980 | }, |
| 981 | { |
| 982 | "type" : "expression", |
| 983 | "value" : { |
| 984 | "type" : "expression", |
| 985 | "value" : { |
| 986 | "op" : "&", |
| 987 | "left" : { |
| 988 | "type" : "field", |
| 989 | "value" : ["standard_metadata", "egress_port"] |
| 990 | }, |
| 991 | "right" : { |
| 992 | "type" : "hexstr", |
| 993 | "value" : "0xffffffff" |
| 994 | } |
| 995 | } |
| 996 | } |
| 997 | } |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 998 | ], |
| 999 | "source_info" : { |
| 1000 | "filename" : "include/port_meters.p4", |
| 1001 | "line" : 41, |
| 1002 | "column" : 52, |
| 1003 | "source_fragment" : "(bit<32>)standard_metadata.egress_port" |
| 1004 | } |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1005 | }, |
| 1006 | { |
| 1007 | "op" : "execute_meter", |
| 1008 | "parameters" : [ |
| 1009 | { |
| 1010 | "type" : "meter_array", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1011 | "value" : "egress.port_meters_egress.egress_port_meter" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1012 | }, |
| 1013 | { |
| 1014 | "type" : "field", |
| 1015 | "value" : ["scalars", "tmp_2"] |
| 1016 | }, |
| 1017 | { |
| 1018 | "type" : "field", |
| 1019 | "value" : ["scalars", "port_meters_egress_egress_color_0"] |
| 1020 | } |
| 1021 | ], |
| 1022 | "source_info" : { |
| 1023 | "filename" : "include/port_meters.p4", |
| 1024 | "line" : 41, |
| 1025 | "column" : 8, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1026 | "source_fragment" : "egress_port_meter.execute_meter<MeterColor>((bit<32>)standard_metadata.egress_port, egress_color)" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1027 | } |
| 1028 | } |
| 1029 | ] |
| 1030 | }, |
| 1031 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1032 | "name" : "act_6", |
| 1033 | "id" : 15, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1034 | "runtime_data" : [], |
| 1035 | "primitives" : [ |
| 1036 | { |
| 1037 | "op" : "add_header", |
| 1038 | "parameters" : [ |
| 1039 | { |
| 1040 | "type" : "header", |
| 1041 | "value" : "packet_in" |
| 1042 | } |
| 1043 | ], |
| 1044 | "source_info" : { |
| 1045 | "filename" : "include/packet_io.p4", |
| 1046 | "line" : 38, |
| 1047 | "column" : 12, |
| 1048 | "source_fragment" : "hdr.packet_in.setValid()" |
| 1049 | } |
| 1050 | }, |
| 1051 | { |
| 1052 | "op" : "assign", |
| 1053 | "parameters" : [ |
| 1054 | { |
| 1055 | "type" : "field", |
| 1056 | "value" : ["packet_in", "ingress_port"] |
| 1057 | }, |
| 1058 | { |
| 1059 | "type" : "field", |
| 1060 | "value" : ["standard_metadata", "ingress_port"] |
| 1061 | } |
| 1062 | ], |
| 1063 | "source_info" : { |
| 1064 | "filename" : "include/packet_io.p4", |
| 1065 | "line" : 39, |
| 1066 | "column" : 12, |
| 1067 | "source_fragment" : "hdr.packet_in.ingress_port = standard_metadata.ingress_port" |
| 1068 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1069 | } |
| 1070 | ] |
| 1071 | } |
| 1072 | ], |
| 1073 | "pipelines" : [ |
| 1074 | { |
| 1075 | "name" : "ingress", |
| 1076 | "id" : 0, |
| 1077 | "source_info" : { |
| 1078 | "filename" : "basic.p4", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1079 | "line" : 37, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1080 | "column" : 8, |
| 1081 | "source_fragment" : "ingress" |
| 1082 | }, |
| 1083 | "init_table" : "tbl_act", |
| 1084 | "tables" : [ |
| 1085 | { |
| 1086 | "name" : "tbl_act", |
| 1087 | "id" : 0, |
| 1088 | "key" : [], |
| 1089 | "match_type" : "exact", |
| 1090 | "type" : "simple", |
| 1091 | "max_size" : 1024, |
| 1092 | "with_counters" : false, |
| 1093 | "support_timeout" : false, |
| 1094 | "direct_meters" : null, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1095 | "action_ids" : [9], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1096 | "actions" : ["act_0"], |
| 1097 | "base_default_next" : "node_3", |
| 1098 | "next_tables" : { |
| 1099 | "act_0" : "node_3" |
| 1100 | }, |
| 1101 | "default_entry" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1102 | "action_id" : 9, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1103 | "action_const" : true, |
| 1104 | "action_data" : [], |
| 1105 | "action_entry_const" : true |
| 1106 | } |
| 1107 | }, |
| 1108 | { |
| 1109 | "name" : "tbl_act_0", |
| 1110 | "id" : 1, |
| 1111 | "key" : [], |
| 1112 | "match_type" : "exact", |
| 1113 | "type" : "simple", |
| 1114 | "max_size" : 1024, |
| 1115 | "with_counters" : false, |
| 1116 | "support_timeout" : false, |
| 1117 | "direct_meters" : null, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1118 | "action_ids" : [8], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1119 | "actions" : ["act"], |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1120 | "base_default_next" : "node_5", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1121 | "next_tables" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1122 | "act" : "node_5" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1123 | }, |
| 1124 | "default_entry" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1125 | "action_id" : 8, |
| 1126 | "action_const" : true, |
| 1127 | "action_data" : [], |
| 1128 | "action_entry_const" : true |
| 1129 | } |
| 1130 | }, |
| 1131 | { |
| 1132 | "name" : "tbl_act_1", |
| 1133 | "id" : 2, |
| 1134 | "key" : [], |
| 1135 | "match_type" : "exact", |
| 1136 | "type" : "simple", |
| 1137 | "max_size" : 1024, |
| 1138 | "with_counters" : false, |
| 1139 | "support_timeout" : false, |
| 1140 | "direct_meters" : null, |
| 1141 | "action_ids" : [10], |
| 1142 | "actions" : ["act_1"], |
| 1143 | "base_default_next" : null, |
| 1144 | "next_tables" : { |
| 1145 | "act_1" : null |
| 1146 | }, |
| 1147 | "default_entry" : { |
| 1148 | "action_id" : 10, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1149 | "action_const" : true, |
| 1150 | "action_data" : [], |
| 1151 | "action_entry_const" : true |
| 1152 | } |
| 1153 | }, |
| 1154 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1155 | "name" : "ingress.table0_control.table0", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1156 | "id" : 3, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1157 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1158 | "filename" : "include/table0.p4", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1159 | "line" : 41, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1160 | "column" : 10, |
| 1161 | "source_fragment" : "table0" |
| 1162 | }, |
| 1163 | "key" : [ |
| 1164 | { |
| 1165 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1166 | "name" : "standard_metadata.ingress_port", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1167 | "target" : ["standard_metadata", "ingress_port"], |
| 1168 | "mask" : null |
| 1169 | }, |
| 1170 | { |
| 1171 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1172 | "name" : "hdr.ethernet.src_addr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1173 | "target" : ["ethernet", "src_addr"], |
| 1174 | "mask" : null |
| 1175 | }, |
| 1176 | { |
| 1177 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1178 | "name" : "hdr.ethernet.dst_addr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1179 | "target" : ["ethernet", "dst_addr"], |
| 1180 | "mask" : null |
| 1181 | }, |
| 1182 | { |
| 1183 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1184 | "name" : "hdr.ethernet.ether_type", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1185 | "target" : ["ethernet", "ether_type"], |
| 1186 | "mask" : null |
| 1187 | }, |
| 1188 | { |
| 1189 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1190 | "name" : "hdr.ipv4.src_addr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1191 | "target" : ["ipv4", "src_addr"], |
| 1192 | "mask" : null |
| 1193 | }, |
| 1194 | { |
| 1195 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1196 | "name" : "hdr.ipv4.dst_addr", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1197 | "target" : ["ipv4", "dst_addr"], |
| 1198 | "mask" : null |
| 1199 | }, |
| 1200 | { |
| 1201 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1202 | "name" : "hdr.ipv4.protocol", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1203 | "target" : ["ipv4", "protocol"], |
| 1204 | "mask" : null |
| 1205 | }, |
| 1206 | { |
| 1207 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1208 | "name" : "local_metadata.l4_src_port", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1209 | "target" : ["scalars", "local_metadata_t.l4_src_port"], |
| 1210 | "mask" : null |
| 1211 | }, |
| 1212 | { |
| 1213 | "match_type" : "ternary", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1214 | "name" : "local_metadata.l4_dst_port", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1215 | "target" : ["scalars", "local_metadata_t.l4_dst_port"], |
| 1216 | "mask" : null |
| 1217 | } |
| 1218 | ], |
| 1219 | "match_type" : "ternary", |
| 1220 | "type" : "simple", |
| 1221 | "max_size" : 1024, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1222 | "with_counters" : true, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1223 | "support_timeout" : false, |
| 1224 | "direct_meters" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1225 | "action_ids" : [5, 4, 3, 0], |
| 1226 | "actions" : ["ingress.table0_control.set_egress_port", "ingress.table0_control.send_to_cpu", "ingress.table0_control.set_next_hop_id", "_drop"], |
| 1227 | "base_default_next" : "tbl_act_2", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1228 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1229 | "ingress.table0_control.set_egress_port" : "tbl_act_2", |
| 1230 | "ingress.table0_control.send_to_cpu" : "tbl_act_2", |
| 1231 | "ingress.table0_control.set_next_hop_id" : "tbl_act_2", |
| 1232 | "_drop" : "tbl_act_2" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1233 | }, |
| 1234 | "default_entry" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1235 | "action_id" : 0, |
| 1236 | "action_const" : true, |
| 1237 | "action_data" : [], |
| 1238 | "action_entry_const" : true |
| 1239 | } |
| 1240 | }, |
| 1241 | { |
| 1242 | "name" : "tbl_act_2", |
| 1243 | "id" : 4, |
| 1244 | "key" : [], |
| 1245 | "match_type" : "exact", |
| 1246 | "type" : "simple", |
| 1247 | "max_size" : 1024, |
| 1248 | "with_counters" : false, |
| 1249 | "support_timeout" : false, |
| 1250 | "direct_meters" : null, |
| 1251 | "action_ids" : [11], |
| 1252 | "actions" : ["act_2"], |
| 1253 | "base_default_next" : "ingress.host_meter_control.host_meter_table", |
| 1254 | "next_tables" : { |
| 1255 | "act_2" : "ingress.host_meter_control.host_meter_table" |
| 1256 | }, |
| 1257 | "default_entry" : { |
| 1258 | "action_id" : 11, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1259 | "action_const" : true, |
| 1260 | "action_data" : [], |
| 1261 | "action_entry_const" : true |
| 1262 | } |
| 1263 | }, |
| 1264 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1265 | "name" : "ingress.host_meter_control.host_meter_table", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1266 | "id" : 5, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1267 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1268 | "filename" : "include/host_meter_table.p4", |
| 1269 | "line" : 33, |
| 1270 | "column" : 10, |
| 1271 | "source_fragment" : "host_meter_table" |
| 1272 | }, |
| 1273 | "key" : [ |
| 1274 | { |
| 1275 | "match_type" : "lpm", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1276 | "name" : "hdr.ethernet.src_addr", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1277 | "target" : ["ethernet", "src_addr"], |
| 1278 | "mask" : null |
| 1279 | } |
| 1280 | ], |
| 1281 | "match_type" : "lpm", |
| 1282 | "type" : "simple", |
| 1283 | "max_size" : 1024, |
| 1284 | "with_counters" : false, |
| 1285 | "support_timeout" : false, |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1286 | "direct_meters" : "ingress.host_meter_control.host_meter", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1287 | "action_ids" : [6, 1], |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1288 | "actions" : ["ingress.host_meter_control.read_meter", "NoAction"], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1289 | "base_default_next" : "node_10", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1290 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1291 | "ingress.host_meter_control.read_meter" : "node_10", |
| 1292 | "NoAction" : "node_10" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1293 | }, |
| 1294 | "default_entry" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1295 | "action_id" : 1, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1296 | "action_const" : false, |
| 1297 | "action_data" : [], |
| 1298 | "action_entry_const" : false |
| 1299 | } |
| 1300 | }, |
| 1301 | { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1302 | "name" : "tbl_act_3", |
| 1303 | "id" : 6, |
| 1304 | "key" : [], |
| 1305 | "match_type" : "exact", |
| 1306 | "type" : "simple", |
| 1307 | "max_size" : 1024, |
| 1308 | "with_counters" : false, |
| 1309 | "support_timeout" : false, |
| 1310 | "direct_meters" : null, |
| 1311 | "action_ids" : [12], |
| 1312 | "actions" : ["act_3"], |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1313 | "base_default_next" : "node_12", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1314 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1315 | "act_3" : "node_12" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1316 | }, |
| 1317 | "default_entry" : { |
| 1318 | "action_id" : 12, |
| 1319 | "action_const" : true, |
| 1320 | "action_data" : [], |
| 1321 | "action_entry_const" : true |
| 1322 | } |
| 1323 | }, |
| 1324 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1325 | "name" : "ingress.wcmp_control.wcmp_table", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1326 | "id" : 7, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1327 | "source_info" : { |
| 1328 | "filename" : "include/wcmp.p4", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1329 | "line" : 34, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1330 | "column" : 10, |
| 1331 | "source_fragment" : "wcmp_table" |
| 1332 | }, |
| 1333 | "key" : [ |
| 1334 | { |
| 1335 | "match_type" : "exact", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1336 | "name" : "local_metadata.next_hop_id", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1337 | "target" : ["scalars", "local_metadata_t.next_hop_id"], |
| 1338 | "mask" : null |
| 1339 | } |
| 1340 | ], |
| 1341 | "match_type" : "exact", |
| 1342 | "type" : "indirect_ws", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1343 | "action_profile" : "ingress.wcmp_control.wcmp_selector", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1344 | "max_size" : 1024, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1345 | "with_counters" : true, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1346 | "support_timeout" : false, |
| 1347 | "direct_meters" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1348 | "action_ids" : [7, 2], |
| 1349 | "actions" : ["ingress.wcmp_control.set_egress_port", "NoAction"], |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1350 | "base_default_next" : null, |
| 1351 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1352 | "ingress.wcmp_control.set_egress_port" : null, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1353 | "NoAction" : null |
| 1354 | } |
| 1355 | } |
| 1356 | ], |
| 1357 | "action_profiles" : [ |
| 1358 | { |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1359 | "name" : "ingress.wcmp_control.wcmp_selector", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1360 | "id" : 0, |
Carmelo Cascone | b0f45fe | 2018-10-11 08:31:59 -0700 | [diff] [blame] | 1361 | "source_info" : { |
| 1362 | "filename" : "include/wcmp.p4", |
| 1363 | "line" : 28, |
| 1364 | "column" : 55, |
| 1365 | "source_fragment" : "wcmp_selector" |
| 1366 | }, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1367 | "max_size" : 64, |
| 1368 | "selector" : { |
| 1369 | "algo" : "crc16", |
| 1370 | "input" : [ |
| 1371 | { |
| 1372 | "type" : "field", |
| 1373 | "value" : ["ipv4", "src_addr"] |
| 1374 | }, |
| 1375 | { |
| 1376 | "type" : "field", |
| 1377 | "value" : ["ipv4", "dst_addr"] |
| 1378 | }, |
| 1379 | { |
| 1380 | "type" : "field", |
| 1381 | "value" : ["ipv4", "protocol"] |
| 1382 | }, |
| 1383 | { |
| 1384 | "type" : "field", |
| 1385 | "value" : ["scalars", "local_metadata_t.l4_src_port"] |
| 1386 | }, |
| 1387 | { |
| 1388 | "type" : "field", |
| 1389 | "value" : ["scalars", "local_metadata_t.l4_dst_port"] |
| 1390 | } |
| 1391 | ] |
| 1392 | } |
| 1393 | } |
| 1394 | ], |
| 1395 | "conditionals" : [ |
| 1396 | { |
| 1397 | "name" : "node_3", |
| 1398 | "id" : 0, |
| 1399 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1400 | "filename" : "include/port_meters.p4", |
| 1401 | "line" : 28, |
| 1402 | "column" : 12, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1403 | "source_fragment" : "ingress_color == MeterColor_RED" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1404 | }, |
| 1405 | "expression" : { |
| 1406 | "type" : "expression", |
| 1407 | "value" : { |
| 1408 | "op" : "==", |
| 1409 | "left" : { |
| 1410 | "type" : "field", |
| 1411 | "value" : ["scalars", "port_meters_ingress_ingress_color_0"] |
| 1412 | }, |
| 1413 | "right" : { |
| 1414 | "type" : "hexstr", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1415 | "value" : "0x02" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1416 | } |
| 1417 | } |
| 1418 | }, |
| 1419 | "true_next" : "tbl_act_0", |
| 1420 | "false_next" : "node_5" |
| 1421 | }, |
| 1422 | { |
| 1423 | "name" : "node_5", |
| 1424 | "id" : 1, |
| 1425 | "source_info" : { |
| 1426 | "filename" : "include/packet_io.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1427 | "line" : 26, |
| 1428 | "column" : 12, |
| 1429 | "source_fragment" : "standard_metadata.ingress_port == CPU_PORT" |
| 1430 | }, |
| 1431 | "expression" : { |
| 1432 | "type" : "expression", |
| 1433 | "value" : { |
| 1434 | "op" : "==", |
| 1435 | "left" : { |
| 1436 | "type" : "field", |
| 1437 | "value" : ["standard_metadata", "ingress_port"] |
| 1438 | }, |
| 1439 | "right" : { |
| 1440 | "type" : "hexstr", |
| 1441 | "value" : "0x00ff" |
| 1442 | } |
| 1443 | } |
| 1444 | }, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1445 | "true_next" : "tbl_act_1", |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1446 | "false_next" : "ingress.table0_control.table0" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1447 | }, |
| 1448 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1449 | "name" : "node_10", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1450 | "id" : 2, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1451 | "source_info" : { |
| 1452 | "filename" : "include/host_meter_table.p4", |
| 1453 | "line" : 47, |
| 1454 | "column" : 12, |
| 1455 | "source_fragment" : "meter_tag == MeterColor_RED" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1456 | }, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1457 | "expression" : { |
| 1458 | "type" : "expression", |
| 1459 | "value" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1460 | "op" : "==", |
| 1461 | "left" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1462 | "type" : "field", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1463 | "value" : ["scalars", "host_meter_control_meter_tag_0"] |
| 1464 | }, |
| 1465 | "right" : { |
| 1466 | "type" : "hexstr", |
| 1467 | "value" : "0x02" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1468 | } |
| 1469 | } |
| 1470 | }, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1471 | "true_next" : "tbl_act_3", |
| 1472 | "false_next" : "node_12" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1473 | }, |
| 1474 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1475 | "name" : "node_12", |
| 1476 | "id" : 3, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1477 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1478 | "filename" : "include/wcmp.p4", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1479 | "line" : 52, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1480 | "column" : 12, |
| 1481 | "source_fragment" : "local_metadata.next_hop_id != 0" |
| 1482 | }, |
| 1483 | "expression" : { |
| 1484 | "type" : "expression", |
| 1485 | "value" : { |
| 1486 | "op" : "!=", |
| 1487 | "left" : { |
| 1488 | "type" : "field", |
| 1489 | "value" : ["scalars", "local_metadata_t.next_hop_id"] |
| 1490 | }, |
| 1491 | "right" : { |
| 1492 | "type" : "hexstr", |
| 1493 | "value" : "0x0000" |
| 1494 | } |
| 1495 | } |
| 1496 | }, |
| 1497 | "false_next" : null, |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1498 | "true_next" : "ingress.wcmp_control.wcmp_table" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1499 | } |
| 1500 | ] |
| 1501 | }, |
| 1502 | { |
| 1503 | "name" : "egress", |
| 1504 | "id" : 1, |
| 1505 | "source_info" : { |
| 1506 | "filename" : "basic.p4", |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1507 | "line" : 55, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1508 | "column" : 8, |
| 1509 | "source_fragment" : "egress" |
| 1510 | }, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1511 | "init_table" : "tbl_act_4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1512 | "tables" : [ |
| 1513 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1514 | "name" : "tbl_act_4", |
| 1515 | "id" : 8, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1516 | "key" : [], |
| 1517 | "match_type" : "exact", |
| 1518 | "type" : "simple", |
| 1519 | "max_size" : 1024, |
| 1520 | "with_counters" : false, |
| 1521 | "support_timeout" : false, |
| 1522 | "direct_meters" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1523 | "action_ids" : [14], |
| 1524 | "actions" : ["act_5"], |
| 1525 | "base_default_next" : "node_17", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1526 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1527 | "act_5" : "node_17" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1528 | }, |
| 1529 | "default_entry" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1530 | "action_id" : 14, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1531 | "action_const" : true, |
| 1532 | "action_data" : [], |
| 1533 | "action_entry_const" : true |
| 1534 | } |
| 1535 | }, |
| 1536 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1537 | "name" : "tbl_act_5", |
| 1538 | "id" : 9, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1539 | "key" : [], |
| 1540 | "match_type" : "exact", |
| 1541 | "type" : "simple", |
| 1542 | "max_size" : 1024, |
| 1543 | "with_counters" : false, |
| 1544 | "support_timeout" : false, |
| 1545 | "direct_meters" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1546 | "action_ids" : [13], |
| 1547 | "actions" : ["act_4"], |
| 1548 | "base_default_next" : "node_19", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1549 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1550 | "act_4" : "node_19" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1551 | }, |
| 1552 | "default_entry" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1553 | "action_id" : 13, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1554 | "action_const" : true, |
| 1555 | "action_data" : [], |
| 1556 | "action_entry_const" : true |
| 1557 | } |
| 1558 | }, |
| 1559 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1560 | "name" : "tbl_act_6", |
| 1561 | "id" : 10, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1562 | "key" : [], |
| 1563 | "match_type" : "exact", |
| 1564 | "type" : "simple", |
| 1565 | "max_size" : 1024, |
| 1566 | "with_counters" : false, |
| 1567 | "support_timeout" : false, |
| 1568 | "direct_meters" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1569 | "action_ids" : [15], |
| 1570 | "actions" : ["act_6"], |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1571 | "base_default_next" : null, |
| 1572 | "next_tables" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1573 | "act_6" : null |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1574 | }, |
| 1575 | "default_entry" : { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1576 | "action_id" : 15, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1577 | "action_const" : true, |
| 1578 | "action_data" : [], |
| 1579 | "action_entry_const" : true |
| 1580 | } |
| 1581 | } |
| 1582 | ], |
| 1583 | "action_profiles" : [], |
| 1584 | "conditionals" : [ |
| 1585 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1586 | "name" : "node_17", |
| 1587 | "id" : 4, |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1588 | "source_info" : { |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1589 | "filename" : "include/port_meters.p4", |
| 1590 | "line" : 42, |
| 1591 | "column" : 12, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1592 | "source_fragment" : "egress_color == MeterColor_RED" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1593 | }, |
| 1594 | "expression" : { |
| 1595 | "type" : "expression", |
| 1596 | "value" : { |
| 1597 | "op" : "==", |
| 1598 | "left" : { |
| 1599 | "type" : "field", |
| 1600 | "value" : ["scalars", "port_meters_egress_egress_color_0"] |
| 1601 | }, |
| 1602 | "right" : { |
| 1603 | "type" : "hexstr", |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1604 | "value" : "0x02" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1605 | } |
| 1606 | } |
| 1607 | }, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1608 | "true_next" : "tbl_act_5", |
| 1609 | "false_next" : "node_19" |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1610 | }, |
| 1611 | { |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1612 | "name" : "node_19", |
| 1613 | "id" : 5, |
Frank Wang | d7e3b4b | 2017-09-24 13:37:54 +0900 | [diff] [blame] | 1614 | "source_info" : { |
| 1615 | "filename" : "include/packet_io.p4", |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1616 | "line" : 37, |
| 1617 | "column" : 12, |
| 1618 | "source_fragment" : "standard_metadata.egress_port == CPU_PORT" |
| 1619 | }, |
| 1620 | "expression" : { |
| 1621 | "type" : "expression", |
| 1622 | "value" : { |
| 1623 | "op" : "==", |
| 1624 | "left" : { |
| 1625 | "type" : "field", |
| 1626 | "value" : ["standard_metadata", "egress_port"] |
| 1627 | }, |
| 1628 | "right" : { |
| 1629 | "type" : "hexstr", |
| 1630 | "value" : "0x00ff" |
| 1631 | } |
| 1632 | } |
| 1633 | }, |
| 1634 | "false_next" : null, |
Keesjan Karsten | 2336889 | 2018-05-22 10:46:01 +0000 | [diff] [blame] | 1635 | "true_next" : "tbl_act_6" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1636 | } |
| 1637 | ] |
| 1638 | } |
| 1639 | ], |
| 1640 | "checksums" : [], |
| 1641 | "force_arith" : [], |
| 1642 | "extern_instances" : [], |
| 1643 | "field_aliases" : [ |
| 1644 | [ |
| 1645 | "queueing_metadata.enq_timestamp", |
| 1646 | ["standard_metadata", "enq_timestamp"] |
| 1647 | ], |
| 1648 | [ |
| 1649 | "queueing_metadata.enq_qdepth", |
| 1650 | ["standard_metadata", "enq_qdepth"] |
| 1651 | ], |
| 1652 | [ |
| 1653 | "queueing_metadata.deq_timedelta", |
| 1654 | ["standard_metadata", "deq_timedelta"] |
| 1655 | ], |
| 1656 | [ |
| 1657 | "queueing_metadata.deq_qdepth", |
| 1658 | ["standard_metadata", "deq_qdepth"] |
| 1659 | ], |
| 1660 | [ |
| 1661 | "intrinsic_metadata.ingress_global_timestamp", |
| 1662 | ["standard_metadata", "ingress_global_timestamp"] |
| 1663 | ], |
| 1664 | [ |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1665 | "intrinsic_metadata.egress_global_timestamp", |
| 1666 | ["standard_metadata", "egress_global_timestamp"] |
| 1667 | ], |
| 1668 | [ |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1669 | "intrinsic_metadata.lf_field_list", |
| 1670 | ["standard_metadata", "lf_field_list"] |
| 1671 | ], |
| 1672 | [ |
| 1673 | "intrinsic_metadata.mcast_grp", |
| 1674 | ["standard_metadata", "mcast_grp"] |
| 1675 | ], |
| 1676 | [ |
| 1677 | "intrinsic_metadata.resubmit_flag", |
| 1678 | ["standard_metadata", "resubmit_flag"] |
| 1679 | ], |
| 1680 | [ |
| 1681 | "intrinsic_metadata.egress_rid", |
| 1682 | ["standard_metadata", "egress_rid"] |
Carmelo Cascone | 81929aa | 2018-04-07 01:38:55 -0700 | [diff] [blame] | 1683 | ], |
| 1684 | [ |
| 1685 | "intrinsic_metadata.recirculate_flag", |
| 1686 | ["standard_metadata", "recirculate_flag"] |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1687 | ] |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 1688 | ], |
| 1689 | "program" : "basic.p4", |
| 1690 | "__meta__" : { |
| 1691 | "version" : [2, 18], |
| 1692 | "compiler" : "https://github.com/p4lang/p4c" |
| 1693 | } |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 1694 | } |