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