Improve fabric.p4 to reduce pipeline resources and refactor pipeconf impl
This patch affects both the P4 pipeline implementation and the
Java pipeconf.
P4 PIPELINE
- Less tables and smarter use of metadata to reduce inter-tables
dependencies and favor parallel execution of tables.
- Removed unused actions / renamed existing ones to make forwarding
behavior clearer (e.g. ingress_port_vlan table)
- Remove co-existence of simple and hansed table. Hashed should be the
default one, but implementations that do not support action profiles
might compile fabric.p4 to use the simple one.
- Use @name annotations for match fields to make control plane
independent of table implementation.
- Use @hidden to avoid showing actions and table on the p4info that
cannot be controlled at runtime.
- First attempt to support double VLAN cross-connect (xconnect table).
- New design has been tested with "fabric-refactoring" branch of
fabric-p4test:
github.com/opennetworkinglab/fabric-p4test/tree/fabric-refactoring
JAVA PIPECONF
This patch brings a major refactoring that reflects the experience
gathered in the past months of working on fabric.p4 and reasoning on its
pipeconf implementation. Indeed, the FlowObjective API is
under-specified and sometimes ambiguous which makes the process of
creating and maintaining a pipeliner implementation tedious. This
refactoring brings a simplified implementation by removing unused/
unnecessary functionalities and by recognizing commonality when possible
(e.g. by means of abstract and utility classes). It also makes design
patterns more explicit and consistent. Overall, the goal is to reduce
technical debt and to make it easier to support new features as we
evolve fabric.p4
Changes include:
- Changes in pipeliner/interpreter to reflect new pipeline design.
- By default translate objective treatment to PiAction. This favors
debuggability of flow rules in ONOS.
- Support new NextObjective’s NextTreatment class.
- Remove lots of unused/unnecessary code (e.g. async callback handling
for pending objective install status in pipeliner as current
implementation was always returning success)
- Gather commonality in abstract classes and simplify implementation
for objective translator (filtering, forwarding, next)
- New implementation of ForwardingFunctionTypes (FFT) that looks at
criterion instance values along with their types (to avoid relying on
case-specific if-else conditions to recognize variants of an FFT)
- Adaptive translation of NextObjective based on presence of simple or
hashed table.
- Support DENY FilteringObjective
Also:
- Fix onos-p4-gen-constants to avoid generating conflicting
PiMatchFieldId variable names.
- Install Graphviz tools in p4vm to generate p4c graphs
- Generate p4c graphs by default when compiling fabric.p4
- Use more compact Hex string when printing PI values
Change-Id: Ife79e44054dc5bc48833f95d0551a7370150eac5
diff --git a/pipelines/fabric/src/main/resources/p4c-out/fabric-spgw/bmv2/default/bmv2.json b/pipelines/fabric/src/main/resources/p4c-out/fabric-spgw/bmv2/default/bmv2.json
index a3db0a8..795c067 100644
--- a/pipelines/fabric/src/main/resources/p4c-out/fabric-spgw/bmv2/default/bmv2.json
+++ b/pipelines/fabric/src/main/resources/p4c-out/fabric-spgw/bmv2/default/bmv2.json
@@ -4,29 +4,33 @@
"name" : "scalars_0",
"id" : 0,
"fields" : [
- ["tmp", 4, false],
- ["tmp_0", 8, false],
+ ["tmp_0", 4, false],
+ ["tmp", 8, false],
["tmp_1", 32, false],
["tmp_2", 32, false],
- ["spgw_ingress_tmp_1", 1, false],
- ["spgw_ingress_tmp_2", 1, false],
- ["filtering_tmp_0", 1, false],
- ["next_tmp_2", 1, false],
- ["next_tmp_3", 1, false],
- ["next_tmp_4", 1, false],
- ["spgw_normalizer_hasReturned_0", 1, false],
- ["spgw_ingress_hasReturned_0", 1, false],
- ["next_hasReturned_0", 1, false],
+ ["spgw_ingress_tmp", 1, false],
+ ["spgw_ingress_tmp_0", 1, false],
+ ["spgw_normalizer_hasReturned", 1, false],
+ ["spgw_ingress_hasReturned", 1, false],
+ ["egress_next_tmp", 1, false],
+ ["fabric_metadata_t.eth_type", 16, false],
+ ["fabric_metadata_t.ip_eth_type", 16, false],
+ ["fabric_metadata_t.vlan_id", 12, false],
+ ["fabric_metadata_t.vlan_pri", 3, false],
+ ["fabric_metadata_t.vlan_cfi", 1, false],
+ ["fabric_metadata_t.mpls_label", 20, false],
+ ["fabric_metadata_t.mpls_ttl", 8, false],
+ ["fabric_metadata_t.skip_forwarding", 1, false],
+ ["fabric_metadata_t.skip_next", 1, false],
["fabric_metadata_t.fwd_type", 3, false],
["fabric_metadata_t.next_id", 32, false],
- ["fabric_metadata_t.pop_vlan_when_packet_in", 1, false],
["fabric_metadata_t.is_multicast", 1, false],
["fabric_metadata_t.is_controller_packet_out", 1, false],
["fabric_metadata_t.clone_to_cpu", 1, false],
["fabric_metadata_t.ip_proto", 8, false],
- ["fabric_metadata_t.l4_src_port", 16, false],
- ["fabric_metadata_t.l4_dst_port", 16, false],
- ["_padding_1", 4, false]
+ ["fabric_metadata_t.l4_sport", 16, false],
+ ["fabric_metadata_t.l4_dport", 16, false],
+ ["_padding_1", 3, false]
]
},
{
@@ -63,7 +67,7 @@
"fields" : [
["dst_addr", 48, false],
["src_addr", 48, false],
- ["ether_type", 16, false]
+ ["eth_type", 16, false]
]
},
{
@@ -73,7 +77,7 @@
["pri", 3, false],
["cfi", 1, false],
["vlan_id", 12, false],
- ["ether_type", 16, false]
+ ["eth_type", 16, false]
]
},
{
@@ -109,8 +113,8 @@
"name" : "udp_t",
"id" : 6,
"fields" : [
- ["src_port", 16, false],
- ["dst_port", 16, false],
+ ["sport", 16, false],
+ ["dport", 16, false],
["len", 16, false],
["checksum", 16, false]
]
@@ -131,22 +135,11 @@
]
},
{
- "name" : "arp_t",
+ "name" : "tcp_t",
"id" : 8,
"fields" : [
- ["hw_type", 16, false],
- ["proto_type", 16, false],
- ["hw_addr_len", 8, false],
- ["proto_addr_len", 8, false],
- ["opcode", 16, false]
- ]
- },
- {
- "name" : "tcp_t",
- "id" : 9,
- "fields" : [
- ["src_port", 16, false],
- ["dst_port", 16, false],
+ ["sport", 16, false],
+ ["dport", 16, false],
["seq_no", 32, false],
["ack_no", 32, false],
["data_offset", 4, false],
@@ -160,7 +153,7 @@
},
{
"name" : "icmp_t",
- "id" : 10,
+ "id" : 9,
"fields" : [
["icmp_type", 8, false],
["icmp_code", 8, false],
@@ -172,7 +165,7 @@
},
{
"name" : "packet_out_header_t",
- "id" : 11,
+ "id" : 10,
"fields" : [
["egress_port", 9, false],
["_pad", 7, false]
@@ -180,7 +173,7 @@
},
{
"name" : "packet_in_header_t",
- "id" : 12,
+ "id" : 11,
"fields" : [
["ingress_port", 9, false],
["_pad", 7, false]
@@ -188,7 +181,7 @@
},
{
"name" : "spgw_meta_t",
- "id" : 13,
+ "id" : 12,
"fields" : [
["direction", 2, false],
["ipv4_len", 16, false],
@@ -229,58 +222,58 @@
"pi_omit" : true
},
{
- "name" : "mpls",
+ "name" : "inner_vlan_tag",
"id" : 4,
+ "header_type" : "vlan_tag_t",
+ "metadata" : false,
+ "pi_omit" : true
+ },
+ {
+ "name" : "mpls",
+ "id" : 5,
"header_type" : "mpls_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "gtpu_ipv4",
- "id" : 5,
+ "id" : 6,
"header_type" : "ipv4_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "gtpu_udp",
- "id" : 6,
+ "id" : 7,
"header_type" : "udp_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "gtpu",
- "id" : 7,
+ "id" : 8,
"header_type" : "gtpu_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "inner_ipv4",
- "id" : 8,
+ "id" : 9,
"header_type" : "ipv4_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "inner_udp",
- "id" : 9,
+ "id" : 10,
"header_type" : "udp_t",
"metadata" : false,
"pi_omit" : true
},
{
"name" : "ipv4",
- "id" : 10,
- "header_type" : "ipv4_t",
- "metadata" : false,
- "pi_omit" : true
- },
- {
- "name" : "arp",
"id" : 11,
- "header_type" : "arp_t",
+ "header_type" : "ipv4_t",
"metadata" : false,
"pi_omit" : true
},
@@ -406,6 +399,32 @@
}
],
"op" : "extract"
+ },
+ {
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
+ },
+ {
+ "type" : "field",
+ "value" : ["ethernet", "eth_type"]
+ }
+ ],
+ "op" : "set"
+ },
+ {
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x0ffe"
+ }
+ ],
+ "op" : "set"
}
],
"transitions" : [
@@ -423,12 +442,6 @@
},
{
"type" : "hexstr",
- "value" : "0x0806",
- "mask" : null,
- "next_state" : "parse_arp"
- },
- {
- "type" : "hexstr",
"value" : "0x0800",
"mask" : null,
"next_state" : "parse_ipv4"
@@ -442,7 +455,7 @@
"transition_key" : [
{
"type" : "field",
- "value" : ["ethernet", "ether_type"]
+ "value" : ["ethernet", "eth_type"]
}
]
},
@@ -463,12 +476,52 @@
"transitions" : [
{
"type" : "hexstr",
- "value" : "0x0806",
+ "value" : "0x0800",
"mask" : null,
- "next_state" : "parse_arp"
+ "next_state" : "parse_ipv4"
},
{
"type" : "hexstr",
+ "value" : "0x8847",
+ "mask" : null,
+ "next_state" : "parse_mpls"
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x8100",
+ "mask" : null,
+ "next_state" : "parse_inner_vlan_tag"
+ },
+ {
+ "value" : "default",
+ "mask" : null,
+ "next_state" : null
+ }
+ ],
+ "transition_key" : [
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "eth_type"]
+ }
+ ]
+ },
+ {
+ "name" : "parse_inner_vlan_tag",
+ "id" : 4,
+ "parser_ops" : [
+ {
+ "parameters" : [
+ {
+ "type" : "regular",
+ "value" : "inner_vlan_tag"
+ }
+ ],
+ "op" : "extract"
+ }
+ ],
+ "transitions" : [
+ {
+ "type" : "hexstr",
"value" : "0x0800",
"mask" : null,
"next_state" : "parse_ipv4"
@@ -488,13 +541,13 @@
"transition_key" : [
{
"type" : "field",
- "value" : ["vlan_tag", "ether_type"]
+ "value" : ["inner_vlan_tag", "eth_type"]
}
]
},
{
"name" : "parse_mpls",
- "id" : 4,
+ "id" : 5,
"parser_ops" : [
{
"parameters" : [
@@ -509,7 +562,33 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "tmp"]
+ "value" : ["scalars", "fabric_metadata_t.mpls_label"]
+ },
+ {
+ "type" : "field",
+ "value" : ["mpls", "label"]
+ }
+ ],
+ "op" : "set"
+ },
+ {
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_ttl"]
+ },
+ {
+ "type" : "field",
+ "value" : ["mpls", "ttl"]
+ }
+ ],
+ "op" : "set"
+ },
+ {
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "tmp_0"]
},
{
"type" : "lookahead",
@@ -535,13 +614,13 @@
"transition_key" : [
{
"type" : "field",
- "value" : ["scalars", "tmp"]
+ "value" : ["scalars", "tmp_0"]
}
]
},
{
"name" : "parse_ipv4",
- "id" : 5,
+ "id" : 6,
"parser_ops" : [
{
"parameters" : [
@@ -564,6 +643,19 @@
}
],
"op" : "set"
+ },
+ {
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.ip_eth_type"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x0800"
+ }
+ ],
+ "op" : "set"
}
],
"transitions" : [
@@ -599,29 +691,6 @@
]
},
{
- "name" : "parse_arp",
- "id" : 6,
- "parser_ops" : [
- {
- "parameters" : [
- {
- "type" : "regular",
- "value" : "arp"
- }
- ],
- "op" : "extract"
- }
- ],
- "transitions" : [
- {
- "value" : "default",
- "mask" : null,
- "next_state" : null
- }
- ],
- "transition_key" : []
- },
- {
"name" : "parse_tcp",
"id" : 7,
"parser_ops" : [
@@ -638,11 +707,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_src_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_sport"]
},
{
"type" : "field",
- "value" : ["tcp", "src_port"]
+ "value" : ["tcp", "sport"]
}
],
"op" : "set"
@@ -651,11 +720,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_dst_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_dport"]
},
{
"type" : "field",
- "value" : ["tcp", "dst_port"]
+ "value" : ["tcp", "dport"]
}
],
"op" : "set"
@@ -687,11 +756,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_src_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_sport"]
},
{
"type" : "field",
- "value" : ["udp", "src_port"]
+ "value" : ["udp", "sport"]
}
],
"op" : "set"
@@ -700,11 +769,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_dst_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_dport"]
},
{
"type" : "field",
- "value" : ["udp", "dst_port"]
+ "value" : ["udp", "dport"]
}
],
"op" : "set"
@@ -726,7 +795,7 @@
"transition_key" : [
{
"type" : "field",
- "value" : ["udp", "dst_port"]
+ "value" : ["udp", "dport"]
}
]
},
@@ -761,7 +830,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "tmp_0"]
+ "value" : ["scalars", "tmp"]
},
{
"type" : "expression",
@@ -820,7 +889,7 @@
"transition_key" : [
{
"type" : "field",
- "value" : ["scalars", "tmp_0"]
+ "value" : ["scalars", "tmp"]
}
]
},
@@ -896,11 +965,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_src_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_sport"]
},
{
"type" : "field",
- "value" : ["inner_udp", "src_port"]
+ "value" : ["inner_udp", "sport"]
}
],
"op" : "set"
@@ -909,11 +978,11 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_dst_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_dport"]
},
{
"type" : "field",
- "value" : ["inner_udp", "dst_port"]
+ "value" : ["inner_udp", "dport"]
}
],
"op" : "set"
@@ -938,11 +1007,11 @@
"id" : 0,
"source_info" : {
"filename" : "include/parser.p4",
- "line" : 228,
+ "line" : 243,
"column" : 8,
"source_fragment" : "FabricDeparser"
},
- "order" : ["packet_in", "ethernet", "vlan_tag", "mpls", "arp", "gtpu_ipv4", "gtpu_udp", "gtpu", "ipv4", "tcp", "udp", "icmp"]
+ "order" : ["packet_in", "ethernet", "vlan_tag", "inner_vlan_tag", "mpls", "gtpu_ipv4", "gtpu_udp", "gtpu", "ipv4", "tcp", "udp", "icmp"]
}
],
"meter_arrays" : [],
@@ -966,7 +1035,7 @@
"binding" : "FabricIngress.filtering.ingress_port_vlan",
"source_info" : {
"filename" : "include/control/filtering.p4",
- "line" : 34,
+ "line" : 31,
"column" : 50,
"source_fragment" : "ingress_port_vlan_counter"
}
@@ -978,7 +1047,7 @@
"binding" : "FabricIngress.filtering.fwd_classifier",
"source_info" : {
"filename" : "include/control/filtering.p4",
- "line" : 96,
+ "line" : 79,
"column" : 50,
"source_fragment" : "fwd_classifier_counter"
}
@@ -990,7 +1059,7 @@
"binding" : "FabricIngress.forwarding.bridging",
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 34,
+ "line" : 36,
"column" : 50,
"source_fragment" : "bridging_counter"
}
@@ -1002,7 +1071,7 @@
"binding" : "FabricIngress.forwarding.mpls",
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 57,
+ "line" : 59,
"column" : 50,
"source_fragment" : "mpls_counter"
}
@@ -1014,45 +1083,45 @@
"binding" : "FabricIngress.forwarding.routing_v4",
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 80,
+ "line" : 82,
"column" : 50,
"source_fragment" : "routing_v4_counter"
}
},
{
- "name" : "FabricIngress.forwarding.acl_counter",
+ "name" : "FabricIngress.acl.acl_counter",
"id" : 6,
"is_direct" : true,
- "binding" : "FabricIngress.forwarding.acl",
+ "binding" : "FabricIngress.acl.acl",
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 107,
+ "filename" : "include/control/acl.p4",
+ "line" : 30,
"column" : 50,
"source_fragment" : "acl_counter"
}
},
{
- "name" : "FabricIngress.next.vlan_meta_counter",
+ "name" : "FabricIngress.next.next_vlan_counter",
"id" : 7,
"is_direct" : true,
- "binding" : "FabricIngress.next.vlan_meta",
+ "binding" : "FabricIngress.next.next_vlan",
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 58,
+ "line" : 67,
"column" : 50,
- "source_fragment" : "vlan_meta_counter"
+ "source_fragment" : "next_vlan_counter"
}
},
{
- "name" : "FabricIngress.next.simple_counter",
+ "name" : "FabricIngress.next.xconnect_counter",
"id" : 8,
"is_direct" : true,
- "binding" : "FabricIngress.next.simple",
+ "binding" : "FabricIngress.next.xconnect",
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 82,
+ "line" : 91,
"column" : 50,
- "source_fragment" : "simple_counter"
+ "source_fragment" : "xconnect_counter"
}
},
{
@@ -1062,7 +1131,7 @@
"binding" : "FabricIngress.next.hashed",
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 146,
+ "line" : 162,
"column" : 50,
"source_fragment" : "hashed_counter"
}
@@ -1074,7 +1143,7 @@
"binding" : "FabricIngress.next.multicast",
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 199,
+ "line" : 205,
"column" : 50,
"source_fragment" : "multicast_counter"
}
@@ -1084,7 +1153,7 @@
"id" : 11,
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 23,
+ "line" : 26,
"column" : 48,
"source_fragment" : "egress_port_counter"
},
@@ -1096,7 +1165,7 @@
"id" : 12,
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 24,
+ "line" : 27,
"column" : 48,
"source_fragment" : "ingress_port_counter"
},
@@ -1110,7 +1179,7 @@
"binding" : "FabricEgress.egress_next.egress_vlan",
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 250,
+ "line" : 277,
"column" : 50,
"source_fragment" : "egress_vlan_counter"
}
@@ -1184,7 +1253,7 @@
"id" : 1,
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 237,
+ "line" : 242,
"column" : 8,
"source_fragment" : "update_checksum(gtpu_ipv4.isValid(), ..."
},
@@ -1305,49 +1374,49 @@
"learn_lists" : [],
"actions" : [
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 0,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 1,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 2,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 3,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 4,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 5,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 6,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "NoAction",
+ "name" : "nop",
"id" : 7,
"runtime_data" : [],
"primitives" : []
@@ -1359,35 +1428,8 @@
"primitives" : []
},
{
- "name" : "drop_now",
- "id" : 9,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "drop",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 24,
- "column" : 4,
- "source_fragment" : "mark_to_drop()"
- }
- },
- {
- "op" : "exit",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 25,
- "column" : 4,
- "source_fragment" : "exit"
- }
- }
- ]
- },
- {
"name" : "FabricIngress.spgw_ingress.gtpu_decap",
- "id" : 10,
+ "id" : 9,
"runtime_data" : [],
"primitives" : [
{
@@ -1400,7 +1442,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 54,
+ "line" : 55,
"column" : 8,
"source_fragment" : "gtpu_ipv4.setInvalid()"
}
@@ -1415,7 +1457,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 55,
+ "line" : 56,
"column" : 8,
"source_fragment" : "gtpu_udp.setInvalid()"
}
@@ -1430,7 +1472,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 56,
+ "line" : 57,
"column" : 8,
"source_fragment" : "gtpu.setInvalid()"
}
@@ -1439,7 +1481,7 @@
},
{
"name" : "FabricIngress.spgw_ingress.set_dl_sess_info",
- "id" : 11,
+ "id" : 10,
"runtime_data" : [
{
"name" : "teid",
@@ -1469,9 +1511,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 62,
+ "line" : 63,
"column" : 8,
- "source_fragment" : "spgw_meta.teid = teid"
+ "source_fragment" : "fabric_meta.spgw.teid = teid"
}
},
{
@@ -1488,9 +1530,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 63,
+ "line" : 64,
"column" : 8,
- "source_fragment" : "spgw_meta.s1u_enb_addr = s1u_enb_addr"
+ "source_fragment" : "fabric_meta.spgw.s1u_enb_addr = s1u_enb_addr"
}
},
{
@@ -1507,187 +1549,24 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 64,
+ "line" : 65,
"column" : 8,
- "source_fragment" : "spgw_meta.s1u_sgw_addr = s1u_sgw_addr"
+ "source_fragment" : "fabric_meta.spgw.s1u_sgw_addr = s1u_sgw_addr"
}
}
]
},
{
- "name" : "FabricIngress.filtering.drop",
- "id" : 12,
+ "name" : "FabricIngress.filtering.deny",
+ "id" : 11,
"runtime_data" : [],
"primitives" : [
{
- "op" : "drop",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "mark_to_drop()"
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.filtering.set_vlan",
- "id" : 13,
- "runtime_data" : [
- {
- "name" : "new_vlan_id",
- "bitwidth" : 12
- }
- ],
- "primitives" : [
- {
"op" : "assign",
"parameters" : [
{
"type" : "field",
- "value" : ["vlan_tag", "vlan_id"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 42,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.vlan_id = new_vlan_id"
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.filtering.push_internal_vlan",
- "id" : 14,
- "runtime_data" : [
- {
- "name" : "new_vlan_id",
- "bitwidth" : 12
- }
- ],
- "primitives" : [
- {
- "op" : "add_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "vlan_tag"
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 49,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.setValid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "cfi"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 50,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.cfi = 0"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "pri"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 51,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.pri = 0"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "field",
- "value" : ["ethernet", "ether_type"]
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 52,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.ether_type = hdr.ethernet.ether_type"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x8100"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 99,
- "column" : 31,
- "source_fragment" : "0x8100; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "vlan_id"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 54,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.vlan_id = new_vlan_id"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "fabric_metadata_t.pop_vlan_when_packet_in"]
+ "value" : ["scalars", "fabric_metadata_t.skip_forwarding"]
},
{
"type" : "expression",
@@ -1706,22 +1585,82 @@
],
"source_info" : {
"filename" : "include/control/filtering.p4",
- "line" : 57,
+ "line" : 36,
"column" : 8,
- "source_fragment" : "fabric_metadata.pop_vlan_when_packet_in = true"
+ "source_fragment" : "fabric_metadata.skip_forwarding = true"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.skip_next"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "b2d",
+ "left" : null,
+ "right" : {
+ "type" : "bool",
+ "value" : true
+ }
+ }
+ }
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 37,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.skip_next = true"
}
}
]
},
{
- "name" : "FabricIngress.filtering.nop_ingress_port_vlan",
- "id" : 15,
+ "name" : "FabricIngress.filtering.permit",
+ "id" : 12,
"runtime_data" : [],
"primitives" : []
},
{
+ "name" : "FabricIngress.filtering.permit_with_internal_vlan",
+ "id" : 13,
+ "runtime_data" : [
+ {
+ "name" : "vlan_id",
+ "bitwidth" : 12
+ }
+ ],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 0
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 47,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.vlan_id = vlan_id"
+ }
+ }
+ ]
+ },
+ {
"name" : "FabricIngress.filtering.set_forwarding_type",
- "id" : 16,
+ "id" : 14,
"runtime_data" : [
{
"name" : "fwd_type",
@@ -1743,7 +1682,7 @@
],
"source_info" : {
"filename" : "include/control/filtering.p4",
- "line" : 99,
+ "line" : 82,
"column" : 8,
"source_fragment" : "fabric_metadata.fwd_type = fwd_type"
}
@@ -1752,6 +1691,87 @@
},
{
"name" : "FabricIngress.forwarding.set_next_id_bridging",
+ "id" : 15,
+ "runtime_data" : [
+ {
+ "name" : "next_id",
+ "bitwidth" : 32
+ }
+ ],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.next_id"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 0
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/forwarding.p4",
+ "line" : 30,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.next_id = next_id; ..."
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricIngress.forwarding.pop_mpls_and_next",
+ "id" : 16,
+ "runtime_data" : [
+ {
+ "name" : "next_id",
+ "bitwidth" : 32
+ }
+ ],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_label"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x000000"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/forwarding.p4",
+ "line" : 62,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.mpls_label = 0"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.next_id"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 0
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/forwarding.p4",
+ "line" : 30,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.next_id = next_id; ..."
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricIngress.forwarding.set_next_id_routing_v4",
"id" : 17,
"runtime_data" : [
{
@@ -1774,61 +1794,21 @@
],
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 37,
+ "line" : 30,
"column" : 8,
- "source_fragment" : "fabric_metadata.next_id = next_id"
+ "source_fragment" : "fabric_metadata.next_id = next_id; ..."
}
}
]
},
{
- "name" : "FabricIngress.forwarding.pop_mpls_and_next",
+ "name" : "FabricIngress.forwarding.nop_routing_v4",
"id" : 18,
- "runtime_data" : [
- {
- "name" : "next_id",
- "bitwidth" : 32
- }
- ],
- "primitives" : [
- {
- "op" : "remove_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "mpls"
- }
- ],
- "source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 60,
- "column" : 8,
- "source_fragment" : "hdr.mpls.setInvalid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "fabric_metadata_t.next_id"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 61,
- "column" : 8,
- "source_fragment" : "fabric_metadata.next_id = next_id"
- }
- }
- ]
+ "runtime_data" : [],
+ "primitives" : []
},
{
- "name" : "FabricIngress.forwarding.set_next_id_routing_v4",
+ "name" : "FabricIngress.acl.set_next_id_acl",
"id" : 19,
"runtime_data" : [
{
@@ -1850,8 +1830,8 @@
}
],
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 83,
+ "filename" : "include/control/acl.p4",
+ "line" : 33,
"column" : 8,
"source_fragment" : "fabric_metadata.next_id = next_id"
}
@@ -1859,46 +1839,9 @@
]
},
{
- "name" : "FabricIngress.forwarding.nop_routing_v4",
+ "name" : "FabricIngress.acl.punt_to_cpu",
"id" : 20,
"runtime_data" : [],
- "primitives" : []
- },
- {
- "name" : "FabricIngress.forwarding.set_next_id_acl",
- "id" : 21,
- "runtime_data" : [
- {
- "name" : "next_id",
- "bitwidth" : 32
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "fabric_metadata_t.next_id"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 110,
- "column" : 8,
- "source_fragment" : "fabric_metadata.next_id = next_id"
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.forwarding.punt_to_cpu",
- "id" : 22,
- "runtime_data" : [],
"primitives" : [
{
"op" : "assign",
@@ -1913,27 +1856,46 @@
}
],
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 116,
+ "filename" : "include/control/acl.p4",
+ "line" : 39,
"column" : 8,
"source_fragment" : "standard_metadata.egress_spec = 255"
}
},
{
- "op" : "exit",
- "parameters" : [],
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.skip_next"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "b2d",
+ "left" : null,
+ "right" : {
+ "type" : "bool",
+ "value" : true
+ }
+ }
+ }
+ }
+ ],
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 118,
+ "filename" : "include/control/acl.p4",
+ "line" : 40,
"column" : 8,
- "source_fragment" : "exit"
+ "source_fragment" : "fabric_metadata.skip_next = true"
}
}
]
},
{
- "name" : "FabricIngress.forwarding.clone_to_cpu",
- "id" : 23,
+ "name" : "FabricIngress.acl.clone_to_cpu",
+ "id" : 21,
"runtime_data" : [],
"primitives" : [
{
@@ -1959,8 +1921,8 @@
}
],
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 123,
+ "filename" : "include/control/acl.p4",
+ "line" : 46,
"column" : 8,
"source_fragment" : "fabric_metadata.clone_to_cpu = true"
}
@@ -1968,34 +1930,63 @@
]
},
{
- "name" : "FabricIngress.forwarding.drop",
- "id" : 24,
+ "name" : "FabricIngress.acl.drop",
+ "id" : 22,
"runtime_data" : [],
"primitives" : [
{
"op" : "drop",
"parameters" : [],
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 128,
+ "filename" : "include/control/acl.p4",
+ "line" : 51,
"column" : 8,
"source_fragment" : "mark_to_drop()"
}
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.skip_next"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "b2d",
+ "left" : null,
+ "right" : {
+ "type" : "bool",
+ "value" : true
+ }
+ }
+ }
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/acl.p4",
+ "line" : 52,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.skip_next = true"
+ }
}
]
},
{
- "name" : "FabricIngress.forwarding.nop_acl",
- "id" : 25,
+ "name" : "FabricIngress.acl.nop_acl",
+ "id" : 23,
"runtime_data" : [],
"primitives" : []
},
{
"name" : "FabricIngress.next.set_vlan",
- "id" : 26,
+ "id" : 24,
"runtime_data" : [
{
- "name" : "new_vlan_id",
+ "name" : "vlan_id",
"bitwidth" : 12
}
],
@@ -2005,7 +1996,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["vlan_tag", "vlan_id"]
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
},
{
"type" : "runtime_data",
@@ -2014,15 +2005,77 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 61,
+ "line" : 70,
"column" : 8,
- "source_fragment" : "hdr.vlan_tag.vlan_id = new_vlan_id"
+ "source_fragment" : "fabric_metadata.vlan_id = vlan_id"
}
}
]
},
{
- "name" : "FabricIngress.next.output_simple",
+ "name" : "FabricIngress.next.output_xconnect",
+ "id" : 25,
+ "runtime_data" : [
+ {
+ "name" : "port_num",
+ "bitwidth" : 9
+ }
+ ],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["standard_metadata", "egress_spec"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 0
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 31,
+ "column" : 5,
+ "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricIngress.next.set_next_id_xconnect",
+ "id" : 26,
+ "runtime_data" : [
+ {
+ "name" : "next_id",
+ "bitwidth" : 32
+ }
+ ],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.next_id"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 0
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 99,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.next_id = next_id"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricIngress.next.output_hashed",
"id" : 27,
"runtime_data" : [
{
@@ -2045,24 +2098,28 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num"
+ "line" : 31,
+ "column" : 5,
+ "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
}
}
]
},
{
- "name" : "FabricIngress.next.set_vlan_output",
+ "name" : "FabricIngress.next.routing_hashed",
"id" : 28,
"runtime_data" : [
{
- "name" : "new_vlan_id",
- "bitwidth" : 12
- },
- {
"name" : "port_num",
"bitwidth" : 9
+ },
+ {
+ "name" : "smac",
+ "bitwidth" : 48
+ },
+ {
+ "name" : "dmac",
+ "bitwidth" : 48
}
],
"primitives" : [
@@ -2071,18 +2128,37 @@
"parameters" : [
{
"type" : "field",
- "value" : ["vlan_tag", "vlan_id"]
+ "value" : ["ethernet", "src_addr"]
},
{
"type" : "runtime_data",
- "value" : 0
+ "value" : 1
}
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 90,
+ "line" : 36,
"column" : 8,
- "source_fragment" : "hdr.vlan_tag.vlan_id = new_vlan_id"
+ "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["ethernet", "dst_addr"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 2
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 41,
+ "column" : 8,
+ "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
}
},
{
@@ -2094,20 +2170,20 @@
},
{
"type" : "runtime_data",
- "value" : 1
+ "value" : 0
}
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
+ "line" : 31,
+ "column" : 5,
"source_fragment" : "standard_metadata.egress_spec = port_num; ..."
}
}
]
},
{
- "name" : "FabricIngress.next.l3_routing_simple",
+ "name" : "FabricIngress.next.mpls_routing_hashed",
"id" : 29,
"runtime_data" : [
{
@@ -2121,6 +2197,10 @@
{
"name" : "dmac",
"bitwidth" : 48
+ },
+ {
+ "name" : "label",
+ "bitwidth" : 20
}
],
"primitives" : [
@@ -2129,6 +2209,25 @@
"parameters" : [
{
"type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_label"]
+ },
+ {
+ "type" : "runtime_data",
+ "value" : 3
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 46,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.mpls_label = label; ..."
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
"value" : ["ethernet", "src_addr"]
},
{
@@ -2138,7 +2237,7 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 37,
+ "line" : 36,
"column" : 8,
"source_fragment" : "hdr.ethernet.src_addr = smac; ..."
}
@@ -2176,960 +2275,19 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
+ "line" : 31,
+ "column" : 5,
"source_fragment" : "standard_metadata.egress_spec = port_num; ..."
}
}
]
},
{
- "name" : "FabricIngress.next.mpls_routing_v4_simple",
+ "name" : "FabricIngress.next.set_mcast_group_id",
"id" : 30,
"runtime_data" : [
{
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- },
- {
- "name" : "label",
- "bitwidth" : 20
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- },
- {
- "op" : "add_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "mpls"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 46,
- "column" : 8,
- "source_fragment" : "hdr.mpls.setValid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x8847"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 100,
- "column" : 31,
- "source_fragment" : "0x8847; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "label"]
- },
- {
- "type" : "runtime_data",
- "value" : 3
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 48,
- "column" : 8,
- "source_fragment" : "hdr.mpls.label = label; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "tc"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 49,
- "column" : 8,
- "source_fragment" : "hdr.mpls.tc = tc; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "bos"]
- },
- {
- "type" : "hexstr",
- "value" : "0x01"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 50,
- "column" : 8,
- "source_fragment" : "hdr.mpls.bos = 1w1"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "ttl"]
- },
- {
- "type" : "hexstr",
- "value" : "0x40"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 123,
- "column" : 32,
- "source_fragment" : "64; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.mpls_routing_v6_simple",
- "id" : 31,
- "runtime_data" : [
- {
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- },
- {
- "name" : "label",
- "bitwidth" : 20
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- },
- {
- "op" : "add_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "mpls"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 46,
- "column" : 8,
- "source_fragment" : "hdr.mpls.setValid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x8847"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 100,
- "column" : 31,
- "source_fragment" : "0x8847; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "label"]
- },
- {
- "type" : "runtime_data",
- "value" : 3
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 48,
- "column" : 8,
- "source_fragment" : "hdr.mpls.label = label; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "tc"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 49,
- "column" : 8,
- "source_fragment" : "hdr.mpls.tc = tc; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "bos"]
- },
- {
- "type" : "hexstr",
- "value" : "0x01"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 50,
- "column" : 8,
- "source_fragment" : "hdr.mpls.bos = 1w1"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "ttl"]
- },
- {
- "type" : "hexstr",
- "value" : "0x40"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 123,
- "column" : 32,
- "source_fragment" : "64; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.l3_routing_vlan",
- "id" : 32,
- "runtime_data" : [
- {
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- },
- {
- "name" : "new_vlan_id",
- "bitwidth" : 12
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "vlan_id"]
- },
- {
- "type" : "runtime_data",
- "value" : 3
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 90,
- "column" : 8,
- "source_fragment" : "hdr.vlan_tag.vlan_id = new_vlan_id; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 85,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.l3_routing_hashed",
- "id" : 33,
- "runtime_data" : [
- {
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 149,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.mpls_routing_v4_hashed",
- "id" : 34,
- "runtime_data" : [
- {
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- },
- {
- "name" : "label",
- "bitwidth" : 20
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 149,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- },
- {
- "op" : "add_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "mpls"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 46,
- "column" : 8,
- "source_fragment" : "hdr.mpls.setValid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x8847"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 100,
- "column" : 31,
- "source_fragment" : "0x8847; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "label"]
- },
- {
- "type" : "runtime_data",
- "value" : 3
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 48,
- "column" : 8,
- "source_fragment" : "hdr.mpls.label = label; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "tc"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 49,
- "column" : 8,
- "source_fragment" : "hdr.mpls.tc = tc; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "bos"]
- },
- {
- "type" : "hexstr",
- "value" : "0x01"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 50,
- "column" : 8,
- "source_fragment" : "hdr.mpls.bos = 1w1"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "ttl"]
- },
- {
- "type" : "hexstr",
- "value" : "0x40"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 123,
- "column" : 32,
- "source_fragment" : "64; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.mpls_routing_v6_hashed",
- "id" : 35,
- "runtime_data" : [
- {
- "name" : "port_num",
- "bitwidth" : 9
- },
- {
- "name" : "smac",
- "bitwidth" : 48
- },
- {
- "name" : "dmac",
- "bitwidth" : 48
- },
- {
- "name" : "label",
- "bitwidth" : 20
- }
- ],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "src_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 1
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 37,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.src_addr = smac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "dst_addr"]
- },
- {
- "type" : "runtime_data",
- "value" : 2
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 41,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.dst_addr = dmac; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["standard_metadata", "egress_spec"]
- },
- {
- "type" : "runtime_data",
- "value" : 0
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 149,
- "column" : 8,
- "source_fragment" : "standard_metadata.egress_spec = port_num; ..."
- }
- },
- {
- "op" : "add_header",
- "parameters" : [
- {
- "type" : "header",
- "value" : "mpls"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 46,
- "column" : 8,
- "source_fragment" : "hdr.mpls.setValid()"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x8847"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 100,
- "column" : 31,
- "source_fragment" : "0x8847; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "label"]
- },
- {
- "type" : "runtime_data",
- "value" : 3
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 48,
- "column" : 8,
- "source_fragment" : "hdr.mpls.label = label; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "tc"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 49,
- "column" : 8,
- "source_fragment" : "hdr.mpls.tc = tc; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "bos"]
- },
- {
- "type" : "hexstr",
- "value" : "0x01"
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 50,
- "column" : 8,
- "source_fragment" : "hdr.mpls.bos = 1w1"
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["mpls", "ttl"]
- },
- {
- "type" : "hexstr",
- "value" : "0x40"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 123,
- "column" : 32,
- "source_fragment" : "64; ..."
- }
- }
- ]
- },
- {
- "name" : "FabricIngress.next.set_mcast_group",
- "id" : 36,
- "runtime_data" : [
- {
- "name" : "gid",
+ "name" : "group_id",
"bitwidth" : 16
}
],
@@ -3148,9 +2306,9 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 202,
+ "line" : 208,
"column" : 8,
- "source_fragment" : "standard_metadata.mcast_grp = gid"
+ "source_fragment" : "standard_metadata.mcast_grp = group_id"
}
},
{
@@ -3177,7 +2335,7 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 203,
+ "line" : 209,
"column" : 8,
"source_fragment" : "fabric_metadata.is_multicast = true"
}
@@ -3186,7 +2344,7 @@
},
{
"name" : "act",
- "id" : 37,
+ "id" : 31,
"runtime_data" : [],
"primitives" : [
{
@@ -3194,7 +2352,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "spgw_normalizer_hasReturned_0"]
+ "value" : ["scalars", "spgw_normalizer_hasReturned"]
},
{
"type" : "expression",
@@ -3222,7 +2380,7 @@
},
{
"name" : "act_0",
- "id" : 38,
+ "id" : 32,
"runtime_data" : [],
"primitives" : [
{
@@ -3235,7 +2393,7 @@
],
"source_info" : {
"filename" : "fabric.p4",
- "line" : 55,
+ "line" : 57,
"column" : 50,
"source_fragment" : "hdr.gtpu_ipv4"
}
@@ -3250,7 +2408,7 @@
],
"source_info" : {
"filename" : "fabric.p4",
- "line" : 55,
+ "line" : 57,
"column" : 65,
"source_fragment" : "hdr.gtpu_udp"
}
@@ -3260,7 +2418,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "spgw_normalizer_hasReturned_0"]
+ "value" : ["scalars", "spgw_normalizer_hasReturned"]
},
{
"type" : "expression",
@@ -3282,7 +2440,7 @@
},
{
"name" : "act_1",
- "id" : 39,
+ "id" : 33,
"runtime_data" : [],
"primitives" : [
{
@@ -3308,7 +2466,7 @@
},
{
"name" : "act_2",
- "id" : 40,
+ "id" : 34,
"runtime_data" : [],
"primitives" : [
{
@@ -3330,7 +2488,7 @@
},
{
"name" : "act_3",
- "id" : 41,
+ "id" : 35,
"runtime_data" : [],
"primitives" : [
{
@@ -3394,7 +2552,7 @@
},
{
"name" : "act_4",
- "id" : 42,
+ "id" : 36,
"runtime_data" : [],
"primitives" : [
{
@@ -3411,7 +2569,7 @@
],
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 26,
+ "line" : 25,
"column" : 12,
"source_fragment" : "standard_metadata.egress_spec = hdr.packet_out.egress_port"
}
@@ -3426,7 +2584,7 @@
],
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 27,
+ "line" : 26,
"column" : 12,
"source_fragment" : "hdr.packet_out.setInvalid()"
}
@@ -3455,7 +2613,7 @@
],
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 28,
+ "line" : 27,
"column" : 12,
"source_fragment" : "fabric_metadata.is_controller_packet_out = true"
}
@@ -3464,7 +2622,7 @@
},
{
"name" : "act_5",
- "id" : 43,
+ "id" : 37,
"runtime_data" : [],
"primitives" : [
{
@@ -3472,7 +2630,116 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_1"]
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
+ },
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "eth_type"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 103,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.eth_type = hdr.vlan_tag.eth_type"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
+ },
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "vlan_id"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 104,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.vlan_id = hdr.vlan_tag.vlan_id"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_pri"]
+ },
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "pri"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 105,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.vlan_pri = hdr.vlan_tag.pri"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_cfi"]
+ },
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "cfi"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 106,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.vlan_cfi = hdr.vlan_tag.cfi"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_6",
+ "id" : 38,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_ttl"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x41"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 113,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.mpls_ttl = DEFAULT_MPLS_TTL + 1"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_7",
+ "id" : 39,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "spgw_ingress_tmp"]
},
{
"type" : "expression",
@@ -3493,8 +2760,8 @@
]
},
{
- "name" : "act_6",
- "id" : 44,
+ "name" : "act_8",
+ "id" : 40,
"runtime_data" : [],
"primitives" : [
{
@@ -3502,7 +2769,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_1"]
+ "value" : ["scalars", "spgw_ingress_tmp"]
},
{
"type" : "expression",
@@ -3523,8 +2790,25 @@
]
},
{
- "name" : "act_7",
- "id" : 45,
+ "name" : "act_9",
+ "id" : 41,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "drop",
+ "parameters" : [],
+ "source_info" : {
+ "filename" : "include/spgw.p4",
+ "line" : 148,
+ "column" : 16,
+ "source_fragment" : "mark_to_drop()"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_10",
+ "id" : 42,
"runtime_data" : [],
"primitives" : [
{
@@ -3541,7 +2825,7 @@
],
"source_info" : {
"filename" : "include/control/../define.p4",
- "line" : 129,
+ "line" : 137,
"column" : 36,
"source_fragment" : "2w1; ..."
}
@@ -3549,94 +2833,8 @@
]
},
{
- "name" : "act_8",
- "id" : 46,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_2"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_9",
- "id" : 47,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_2"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : false
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_10",
- "id" : 48,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["userMetadata.spgw", "direction"]
- },
- {
- "type" : "hexstr",
- "value" : "0x02"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 130,
- "column" : 38,
- "source_fragment" : "2w2; ..."
- }
- }
- ]
- },
- {
"name" : "act_11",
- "id" : 49,
+ "id" : 43,
"runtime_data" : [],
"primitives" : [
{
@@ -3644,26 +2842,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["userMetadata.spgw", "direction"]
- },
- {
- "type" : "hexstr",
- "value" : "0x00"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 128,
- "column" : 37,
- "source_fragment" : "2w0; ..."
- }
- },
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "spgw_ingress_hasReturned_0"]
+ "value" : ["scalars", "spgw_ingress_tmp_0"]
},
{
"type" : "expression",
@@ -3679,19 +2858,13 @@
}
}
}
- ],
- "source_info" : {
- "filename" : "include/spgw.p4",
- "line" : 153,
- "column" : 12,
- "source_fragment" : "return"
- }
+ ]
}
]
},
{
"name" : "act_12",
- "id" : 50,
+ "id" : 44,
"runtime_data" : [],
"primitives" : [
{
@@ -3699,7 +2872,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "spgw_ingress_hasReturned_0"]
+ "value" : ["scalars", "spgw_ingress_tmp_0"]
},
{
"type" : "expression",
@@ -3721,7 +2894,7 @@
},
{
"name" : "act_13",
- "id" : 51,
+ "id" : 45,
"runtime_data" : [],
"primitives" : [
{
@@ -3729,25 +2902,25 @@
"parameters" : [
{
"type" : "field",
- "value" : ["userMetadata.spgw", "ipv4_len"]
+ "value" : ["userMetadata.spgw", "direction"]
},
{
- "type" : "field",
- "value" : ["ipv4", "total_len"]
+ "type" : "hexstr",
+ "value" : "0x02"
}
],
"source_info" : {
- "filename" : "include/spgw.p4",
- "line" : 170,
- "column" : 8,
- "source_fragment" : "spgw_meta.ipv4_len = ipv4.total_len"
+ "filename" : "include/control/../define.p4",
+ "line" : 138,
+ "column" : 38,
+ "source_fragment" : "2w2; ..."
}
}
]
},
{
"name" : "act_14",
- "id" : 52,
+ "id" : 46,
"runtime_data" : [],
"primitives" : [
{
@@ -3755,7 +2928,26 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "filtering_tmp_0"]
+ "value" : ["userMetadata.spgw", "direction"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x00"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/../define.p4",
+ "line" : 136,
+ "column" : 37,
+ "source_fragment" : "2w0; ..."
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "spgw_ingress_hasReturned"]
},
{
"type" : "expression",
@@ -3771,13 +2963,19 @@
}
}
}
- ]
+ ],
+ "source_info" : {
+ "filename" : "include/spgw.p4",
+ "line" : 157,
+ "column" : 12,
+ "source_fragment" : "return"
+ }
}
]
},
{
"name" : "act_15",
- "id" : 53,
+ "id" : 47,
"runtime_data" : [],
"primitives" : [
{
@@ -3785,7 +2983,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "filtering_tmp_0"]
+ "value" : ["scalars", "spgw_ingress_hasReturned"]
},
{
"type" : "expression",
@@ -3807,7 +3005,7 @@
},
{
"name" : "act_16",
- "id" : 54,
+ "id" : 48,
"runtime_data" : [],
"primitives" : [
{
@@ -3815,346 +3013,25 @@
"parameters" : [
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.fwd_type"]
+ "value" : ["userMetadata.spgw", "ipv4_len"]
},
{
- "type" : "hexstr",
- "value" : "0x07"
+ "type" : "field",
+ "value" : ["ipv4", "total_len"]
}
],
"source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 119,
- "column" : 31,
- "source_fragment" : "7; ..."
+ "filename" : "include/spgw.p4",
+ "line" : 174,
+ "column" : 8,
+ "source_fragment" : "fabric_meta.spgw.ipv4_len = ipv4.total_len"
}
}
]
},
{
"name" : "act_17",
- "id" : 55,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- },
- {
- "type" : "hexstr",
- "value" : "0x0800"
- }
- ],
- "source_info" : {
- "filename" : "include/control/../define.p4",
- "line" : 102,
- "column" : 31,
- "source_fragment" : "0x0800; ..."
- }
- }
- ]
- },
- {
- "name" : "act_18",
- "id" : 56,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_hasReturned_0"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : false
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_19",
- "id" : 57,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_4"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_20",
- "id" : 58,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_4"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : false
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_21",
- "id" : 59,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_3"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_22",
- "id" : 60,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_3"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : false
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_23",
- "id" : 61,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_2"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_24",
- "id" : 62,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_tmp_2"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : false
- }
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name" : "act_25",
- "id" : 63,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["scalars", "next_hasReturned_0"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "b2d",
- "left" : null,
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 223,
- "column" : 20,
- "source_fragment" : "return"
- }
- }
- ]
- },
- {
- "name" : "act_26",
- "id" : 64,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ipv4", "ttl"]
- },
- {
- "type" : "expression",
- "value" : {
- "type" : "expression",
- "value" : {
- "op" : "&",
- "left" : {
- "type" : "expression",
- "value" : {
- "op" : "+",
- "left" : {
- "type" : "field",
- "value" : ["ipv4", "ttl"]
- },
- "right" : {
- "type" : "hexstr",
- "value" : "0xff"
- }
- }
- },
- "right" : {
- "type" : "hexstr",
- "value" : "0xff"
- }
- }
- }
- }
- ],
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 230,
- "column" : 16,
- "source_fragment" : "hdr.ipv4.ttl = hdr.ipv4.ttl - 1"
- }
- }
- ]
- },
- {
- "name" : "act_27",
- "id" : 65,
+ "id" : 49,
"runtime_data" : [],
"primitives" : [
{
@@ -4184,7 +3061,7 @@
],
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 28,
+ "line" : 31,
"column" : 38,
"source_fragment" : "(bit<32>)standard_metadata.egress_spec"
}
@@ -4203,7 +3080,7 @@
],
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 28,
+ "line" : 31,
"column" : 12,
"source_fragment" : "egress_port_counter.count((bit<32>)standard_metadata.egress_spec)"
}
@@ -4211,8 +3088,8 @@
]
},
{
- "name" : "act_28",
- "id" : 66,
+ "name" : "act_18",
+ "id" : 50,
"runtime_data" : [],
"primitives" : [
{
@@ -4242,7 +3119,7 @@
],
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 31,
+ "line" : 34,
"column" : 39,
"source_fragment" : "(bit<32>)standard_metadata.ingress_port"
}
@@ -4261,7 +3138,7 @@
],
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 31,
+ "line" : 34,
"column" : 12,
"source_fragment" : "ingress_port_counter.count((bit<32>)standard_metadata.ingress_port)"
}
@@ -4270,67 +3147,13 @@
},
{
"name" : "nop",
- "id" : 67,
+ "id" : 51,
"runtime_data" : [],
"primitives" : []
},
{
- "name" : "drop_now",
- "id" : 68,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "drop",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 24,
- "column" : 4,
- "source_fragment" : "mark_to_drop()"
- }
- },
- {
- "op" : "exit",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 25,
- "column" : 4,
- "source_fragment" : "exit"
- }
- }
- ]
- },
- {
- "name" : "drop_now",
- "id" : 69,
- "runtime_data" : [],
- "primitives" : [
- {
- "op" : "drop",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 24,
- "column" : 4,
- "source_fragment" : "mark_to_drop()"
- }
- },
- {
- "op" : "exit",
- "parameters" : [],
- "source_info" : {
- "filename" : "include/control/../action.p4",
- "line" : 25,
- "column" : 4,
- "source_fragment" : "exit"
- }
- }
- ]
- },
- {
"name" : "FabricEgress.spgw_egress.gtpu_encap",
- "id" : 70,
+ "id" : 52,
"runtime_data" : [],
"primitives" : [
{
@@ -4343,7 +3166,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 185,
+ "line" : 190,
"column" : 8,
"source_fragment" : "gtpu_ipv4.setValid()"
}
@@ -4362,7 +3185,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 186,
+ "line" : 191,
"column" : 8,
"source_fragment" : "gtpu_ipv4.version = 4"
}
@@ -4381,7 +3204,7 @@
],
"source_info" : {
"filename" : "include/control/../define.p4",
- "line" : 111,
+ "line" : 119,
"column" : 28,
"source_fragment" : "5; ..."
}
@@ -4400,7 +3223,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 188,
+ "line" : 193,
"column" : 8,
"source_fragment" : "gtpu_ipv4.dscp = 0"
}
@@ -4419,7 +3242,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 189,
+ "line" : 194,
"column" : 8,
"source_fragment" : "gtpu_ipv4.ecn = 0"
}
@@ -4461,7 +3284,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 190,
+ "line" : 195,
"column" : 8,
"source_fragment" : "gtpu_ipv4.total_len = ipv4.total_len ..."
}
@@ -4480,7 +3303,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 192,
+ "line" : 197,
"column" : 8,
"source_fragment" : "gtpu_ipv4.identification = 0x1513"
}
@@ -4499,7 +3322,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 193,
+ "line" : 198,
"column" : 8,
"source_fragment" : "gtpu_ipv4.flags = 0"
}
@@ -4518,7 +3341,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 194,
+ "line" : 199,
"column" : 8,
"source_fragment" : "gtpu_ipv4.frag_offset = 0"
}
@@ -4537,7 +3360,7 @@
],
"source_info" : {
"filename" : "include/control/../define.p4",
- "line" : 124,
+ "line" : 132,
"column" : 32,
"source_fragment" : "64; ..."
}
@@ -4556,7 +3379,7 @@
],
"source_info" : {
"filename" : "include/control/../define.p4",
- "line" : 108,
+ "line" : 116,
"column" : 25,
"source_fragment" : "17; ..."
}
@@ -4575,9 +3398,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 197,
+ "line" : 202,
"column" : 8,
- "source_fragment" : "gtpu_ipv4.dst_addr = spgw_meta.s1u_enb_addr"
+ "source_fragment" : "gtpu_ipv4.dst_addr = fabric_meta.spgw.s1u_enb_addr"
}
},
{
@@ -4594,9 +3417,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 198,
+ "line" : 203,
"column" : 8,
- "source_fragment" : "gtpu_ipv4.src_addr = spgw_meta.s1u_sgw_addr"
+ "source_fragment" : "gtpu_ipv4.src_addr = fabric_meta.spgw.s1u_sgw_addr"
}
},
{
@@ -4613,7 +3436,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 199,
+ "line" : 204,
"column" : 8,
"source_fragment" : "gtpu_ipv4.hdr_checksum = 0"
}
@@ -4628,7 +3451,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 201,
+ "line" : 206,
"column" : 8,
"source_fragment" : "gtpu_udp.setValid()"
}
@@ -4638,7 +3461,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["gtpu_udp", "src_port"]
+ "value" : ["gtpu_udp", "sport"]
},
{
"type" : "hexstr",
@@ -4647,9 +3470,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 202,
+ "line" : 207,
"column" : 8,
- "source_fragment" : "gtpu_udp.src_port = 2152"
+ "source_fragment" : "gtpu_udp.sport = 2152"
}
},
{
@@ -4657,7 +3480,7 @@
"parameters" : [
{
"type" : "field",
- "value" : ["gtpu_udp", "dst_port"]
+ "value" : ["gtpu_udp", "dport"]
},
{
"type" : "hexstr",
@@ -4666,9 +3489,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 203,
+ "line" : 208,
"column" : 8,
- "source_fragment" : "gtpu_udp.dst_port = 2152"
+ "source_fragment" : "gtpu_udp.dport = 2152"
}
},
{
@@ -4708,9 +3531,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 204,
+ "line" : 209,
"column" : 8,
- "source_fragment" : "gtpu_udp.len = spgw_meta.ipv4_len ..."
+ "source_fragment" : "gtpu_udp.len = fabric_meta.spgw.ipv4_len ..."
}
},
{
@@ -4727,7 +3550,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 206,
+ "line" : 211,
"column" : 8,
"source_fragment" : "gtpu_udp.checksum = 0"
}
@@ -4742,7 +3565,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 208,
+ "line" : 213,
"column" : 8,
"source_fragment" : "gtpu.setValid()"
}
@@ -4761,7 +3584,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 209,
+ "line" : 214,
"column" : 8,
"source_fragment" : "gtpu.version = 0x01"
}
@@ -4780,7 +3603,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 210,
+ "line" : 215,
"column" : 8,
"source_fragment" : "gtpu.pt = 0x01"
}
@@ -4799,7 +3622,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 211,
+ "line" : 216,
"column" : 8,
"source_fragment" : "gtpu.spare = 0"
}
@@ -4818,7 +3641,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 212,
+ "line" : 217,
"column" : 8,
"source_fragment" : "gtpu.ex_flag = 0"
}
@@ -4837,7 +3660,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 213,
+ "line" : 218,
"column" : 8,
"source_fragment" : "gtpu.seq_flag = 0"
}
@@ -4856,7 +3679,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 214,
+ "line" : 219,
"column" : 8,
"source_fragment" : "gtpu.npdu_flag = 0"
}
@@ -4875,7 +3698,7 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 215,
+ "line" : 220,
"column" : 8,
"source_fragment" : "gtpu.msgtype = 0xff"
}
@@ -4894,9 +3717,9 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 216,
+ "line" : 221,
"column" : 8,
- "source_fragment" : "gtpu.msglen = spgw_meta.ipv4_len"
+ "source_fragment" : "gtpu.msglen = fabric_meta.spgw.ipv4_len"
}
},
{
@@ -4913,76 +3736,310 @@
],
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 217,
+ "line" : 222,
"column" : 8,
- "source_fragment" : "gtpu.teid = spgw_meta.teid"
+ "source_fragment" : "gtpu.teid = fabric_meta.spgw.teid"
}
}
]
},
{
- "name" : "FabricEgress.pkt_io_egress.pop_vlan",
- "id" : 71,
+ "name" : "FabricEgress.egress_next.pop_mpls_if_present",
+ "id" : 53,
"runtime_data" : [],
"primitives" : [
{
- "op" : "assign",
- "parameters" : [
- {
- "type" : "field",
- "value" : ["ethernet", "ether_type"]
- },
- {
- "type" : "field",
- "value" : ["vlan_tag", "ether_type"]
- }
- ],
- "source_info" : {
- "filename" : "include/control/packetio.p4",
- "line" : 40,
- "column" : 8,
- "source_fragment" : "hdr.ethernet.ether_type = hdr.vlan_tag.ether_type"
- }
- },
- {
"op" : "remove_header",
"parameters" : [
{
"type" : "header",
- "value" : "vlan_tag"
+ "value" : "mpls"
}
],
"source_info" : {
- "filename" : "include/control/packetio.p4",
- "line" : 41,
+ "filename" : "include/control/next.p4",
+ "line" : 246,
"column" : 8,
- "source_fragment" : "hdr.vlan_tag.setInvalid()"
+ "source_fragment" : "hdr.mpls.setInvalid()"
}
- }
- ]
- },
- {
- "name" : "FabricEgress.egress_next.pop_vlan",
- "id" : 72,
- "runtime_data" : [],
- "primitives" : [
+ },
{
"op" : "assign",
"parameters" : [
{
"type" : "field",
- "value" : ["ethernet", "ether_type"]
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
},
{
"type" : "field",
- "value" : ["vlan_tag", "ether_type"]
+ "value" : ["scalars", "fabric_metadata_t.ip_eth_type"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 248,
+ "column" : 8,
+ "source_fragment" : "fabric_metadata.eth_type = fabric_metadata.ip_eth_type"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricEgress.egress_next.set_mpls",
+ "id" : 54,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "add_header",
+ "parameters" : [
+ {
+ "type" : "header",
+ "value" : "mpls"
}
],
"source_info" : {
"filename" : "include/control/next.p4",
"line" : 253,
"column" : 8,
- "source_fragment" : "hdr.ethernet.ether_type = hdr.vlan_tag.ether_type"
+ "source_fragment" : "hdr.mpls.setValid()"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["mpls", "label"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_label"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 254,
+ "column" : 8,
+ "source_fragment" : "hdr.mpls.label = fabric_metadata.mpls_label"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["mpls", "tc"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x00"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 255,
+ "column" : 8,
+ "source_fragment" : "hdr.mpls.tc = 3w0"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["mpls", "bos"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x01"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 256,
+ "column" : 8,
+ "source_fragment" : "hdr.mpls.bos = 1w1"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["mpls", "ttl"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_ttl"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 257,
+ "column" : 8,
+ "source_fragment" : "hdr.mpls.ttl = fabric_metadata.mpls_ttl"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x8847"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/../define.p4",
+ "line" : 108,
+ "column" : 31,
+ "source_fragment" : "0x8847; ..."
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricEgress.egress_next.push_vlan",
+ "id" : 55,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "add_header",
+ "parameters" : [
+ {
+ "type" : "header",
+ "value" : "vlan_tag"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 265,
+ "column" : 8,
+ "source_fragment" : "hdr.vlan_tag.setValid()"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "cfi"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_cfi"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 266,
+ "column" : 8,
+ "source_fragment" : "hdr.vlan_tag.cfi = fabric_metadata.vlan_cfi"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "pri"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_pri"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 267,
+ "column" : 8,
+ "source_fragment" : "hdr.vlan_tag.pri = fabric_metadata.vlan_pri"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "eth_type"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 268,
+ "column" : 8,
+ "source_fragment" : "hdr.vlan_tag.eth_type = fabric_metadata.eth_type"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["vlan_tag", "vlan_id"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 269,
+ "column" : 8,
+ "source_fragment" : "hdr.vlan_tag.vlan_id = fabric_metadata.vlan_id"
+ }
+ },
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["ethernet", "eth_type"]
+ },
+ {
+ "type" : "hexstr",
+ "value" : "0x8100"
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/../define.p4",
+ "line" : 107,
+ "column" : 31,
+ "source_fragment" : "0x8100; ..."
+ }
+ }
+ ]
+ },
+ {
+ "name" : "FabricEgress.egress_next.pop_vlan",
+ "id" : 56,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["ethernet", "eth_type"]
+ },
+ {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.eth_type"]
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 280,
+ "column" : 8,
+ "source_fragment" : "hdr.ethernet.eth_type = fabric_metadata.eth_type"
}
},
{
@@ -4995,7 +4052,7 @@
],
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 254,
+ "line" : 281,
"column" : 8,
"source_fragment" : "hdr.vlan_tag.setInvalid()"
}
@@ -5003,8 +4060,25 @@
]
},
{
- "name" : "act_29",
- "id" : 73,
+ "name" : "act_19",
+ "id" : 57,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "drop",
+ "parameters" : [],
+ "source_info" : {
+ "filename" : "include/control/packetio.p4",
+ "line" : 47,
+ "column" : 16,
+ "source_fragment" : "mark_to_drop()"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_20",
+ "id" : 58,
"runtime_data" : [],
"primitives" : [
{
@@ -5017,7 +4091,7 @@
],
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 57,
+ "line" : 49,
"column" : 12,
"source_fragment" : "hdr.packet_in.setValid()"
}
@@ -5036,12 +4110,221 @@
],
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 58,
+ "line" : 50,
"column" : 12,
"source_fragment" : "hdr.packet_in.ingress_port = standard_metadata.ingress_port"
}
}
]
+ },
+ {
+ "name" : "act_21",
+ "id" : 59,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "drop",
+ "parameters" : [],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 301,
+ "column" : 12,
+ "source_fragment" : "mark_to_drop()"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_22",
+ "id" : 60,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "egress_next_tmp"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "b2d",
+ "left" : null,
+ "right" : {
+ "type" : "bool",
+ "value" : true
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name" : "act_23",
+ "id" : 61,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["scalars", "egress_next_tmp"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "b2d",
+ "left" : null,
+ "right" : {
+ "type" : "bool",
+ "value" : false
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name" : "act_24",
+ "id" : 62,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "drop",
+ "parameters" : [],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 320,
+ "column" : 35,
+ "source_fragment" : "mark_to_drop()"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_25",
+ "id" : 63,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["mpls", "ttl"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "&",
+ "left" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "+",
+ "left" : {
+ "type" : "field",
+ "value" : ["mpls", "ttl"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0xff"
+ }
+ }
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0xff"
+ }
+ }
+ }
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 319,
+ "column" : 12,
+ "source_fragment" : "hdr.mpls.ttl = hdr.mpls.ttl - 1"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_26",
+ "id" : 64,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "drop",
+ "parameters" : [],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 324,
+ "column" : 39,
+ "source_fragment" : "mark_to_drop()"
+ }
+ }
+ ]
+ },
+ {
+ "name" : "act_27",
+ "id" : 65,
+ "runtime_data" : [],
+ "primitives" : [
+ {
+ "op" : "assign",
+ "parameters" : [
+ {
+ "type" : "field",
+ "value" : ["ipv4", "ttl"]
+ },
+ {
+ "type" : "expression",
+ "value" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "&",
+ "left" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "+",
+ "left" : {
+ "type" : "field",
+ "value" : ["ipv4", "ttl"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0xff"
+ }
+ }
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0xff"
+ }
+ }
+ }
+ }
+ ],
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 323,
+ "column" : 16,
+ "source_fragment" : "hdr.ipv4.ttl = hdr.ipv4.ttl - 1"
+ }
+ }
+ ]
}
],
"pipelines" : [
@@ -5050,7 +4333,7 @@
"id" : 0,
"source_info" : {
"filename" : "fabric.p4",
- "line" : 40,
+ "line" : 41,
"column" : 8,
"source_fragment" : "FabricIngress"
},
@@ -5066,14 +4349,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [38],
+ "action_ids" : [32],
"actions" : ["act_0"],
"base_default_next" : "node_3",
"next_tables" : {
"act_0" : "node_3"
},
"default_entry" : {
- "action_id" : 38,
+ "action_id" : 32,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5089,14 +4372,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [37],
+ "action_ids" : [31],
"actions" : ["act"],
"base_default_next" : "node_5",
"next_tables" : {
"act" : "node_5"
},
"default_entry" : {
- "action_id" : 37,
+ "action_id" : 31,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5112,14 +4395,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [41],
+ "action_ids" : [35],
"actions" : ["act_3"],
"base_default_next" : "node_7",
"next_tables" : {
"act_3" : "node_7"
},
"default_entry" : {
- "action_id" : 41,
+ "action_id" : 35,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5135,14 +4418,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [39],
+ "action_ids" : [33],
"actions" : ["act_1"],
"base_default_next" : "node_10",
"next_tables" : {
"act_1" : "node_10"
},
"default_entry" : {
- "action_id" : 39,
+ "action_id" : 33,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5158,14 +4441,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [40],
+ "action_ids" : [34],
"actions" : ["act_2"],
"base_default_next" : "node_10",
"next_tables" : {
"act_2" : "node_10"
},
"default_entry" : {
- "action_id" : 40,
+ "action_id" : 34,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5181,14 +4464,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [42],
+ "action_ids" : [36],
"actions" : ["act_4"],
"base_default_next" : null,
"next_tables" : {
"act_4" : null
},
"default_entry" : {
- "action_id" : 42,
+ "action_id" : 36,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5204,14 +4487,158 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [50],
- "actions" : ["act_12"],
- "base_default_next" : "node_13",
+ "action_ids" : [37],
+ "actions" : ["act_5"],
+ "base_default_next" : "node_14",
"next_tables" : {
- "act_12" : "node_13"
+ "act_5" : "node_14"
},
"default_entry" : {
- "action_id" : 50,
+ "action_id" : 37,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_6",
+ "id" : 7,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [38],
+ "actions" : ["act_6"],
+ "base_default_next" : "FabricIngress.filtering.ingress_port_vlan",
+ "next_tables" : {
+ "act_6" : "FabricIngress.filtering.ingress_port_vlan"
+ },
+ "default_entry" : {
+ "action_id" : 38,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "FabricIngress.filtering.ingress_port_vlan",
+ "id" : 8,
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 51,
+ "column" : 10,
+ "source_fragment" : "ingress_port_vlan"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "ig_port",
+ "target" : ["standard_metadata", "ingress_port"],
+ "mask" : null
+ },
+ {
+ "match_type" : "exact",
+ "name" : "vlan_is_valid",
+ "target" : ["vlan_tag", "$valid$"],
+ "mask" : null
+ },
+ {
+ "match_type" : "ternary",
+ "name" : "vlan_id",
+ "target" : ["vlan_tag", "vlan_id"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "ternary",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [11, 12, 13],
+ "actions" : ["FabricIngress.filtering.deny", "FabricIngress.filtering.permit", "FabricIngress.filtering.permit_with_internal_vlan"],
+ "base_default_next" : "FabricIngress.filtering.fwd_classifier",
+ "next_tables" : {
+ "FabricIngress.filtering.deny" : "FabricIngress.filtering.fwd_classifier",
+ "FabricIngress.filtering.permit" : "FabricIngress.filtering.fwd_classifier",
+ "FabricIngress.filtering.permit_with_internal_vlan" : "FabricIngress.filtering.fwd_classifier"
+ },
+ "default_entry" : {
+ "action_id" : 11,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "FabricIngress.filtering.fwd_classifier",
+ "id" : 9,
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 86,
+ "column" : 10,
+ "source_fragment" : "fwd_classifier"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "ig_port",
+ "target" : ["standard_metadata", "ingress_port"],
+ "mask" : null
+ },
+ {
+ "match_type" : "ternary",
+ "name" : "eth_dst",
+ "target" : ["ethernet", "dst_addr"],
+ "mask" : null
+ },
+ {
+ "match_type" : "exact",
+ "name" : "eth_type",
+ "target" : ["scalars", "fabric_metadata_t.eth_type"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "ternary",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [14],
+ "actions" : ["FabricIngress.filtering.set_forwarding_type"],
+ "base_default_next" : "tbl_act_7",
+ "next_tables" : {
+ "FabricIngress.filtering.set_forwarding_type" : "tbl_act_7"
+ },
+ "default_entry" : {
+ "action_id" : 14,
+ "action_const" : true,
+ "action_data" : ["0x0"],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_7",
+ "id" : 10,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [47],
+ "actions" : ["act_15"],
+ "base_default_next" : "node_19",
+ "next_tables" : {
+ "act_15" : "node_19"
+ },
+ "default_entry" : {
+ "action_id" : 47,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5219,17 +4646,17 @@
},
{
"name" : "FabricIngress.spgw_ingress.s1u_filter_table",
- "id" : 7,
+ "id" : 11,
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 79,
+ "line" : 82,
"column" : 10,
"source_fragment" : "s1u_filter_table"
},
"key" : [
{
"match_type" : "exact",
- "name" : "gtpu_ipv4.dst_addr",
+ "name" : "gtp_ipv4_dst",
"target" : ["gtpu_ipv4", "dst_addr"],
"mask" : null
}
@@ -5241,22 +4668,22 @@
"support_timeout" : false,
"direct_meters" : null,
"action_ids" : [1],
- "actions" : ["NoAction"],
+ "actions" : ["nop"],
"base_default_next" : null,
"next_tables" : {
- "__HIT__" : "tbl_act_6",
- "__MISS__" : "tbl_act_7"
+ "__HIT__" : "tbl_act_8",
+ "__MISS__" : "tbl_act_9"
},
"default_entry" : {
"action_id" : 1,
- "action_const" : false,
+ "action_const" : true,
"action_data" : [],
- "action_entry_const" : false
+ "action_entry_const" : true
}
},
{
- "name" : "tbl_act_6",
- "id" : 8,
+ "name" : "tbl_act_8",
+ "id" : 12,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -5264,22 +4691,22 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [43],
- "actions" : ["act_5"],
- "base_default_next" : "node_17",
+ "action_ids" : [39],
+ "actions" : ["act_7"],
+ "base_default_next" : "node_23",
"next_tables" : {
- "act_5" : "node_17"
+ "act_7" : "node_23"
},
"default_entry" : {
- "action_id" : 43,
+ "action_id" : 39,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "tbl_act_7",
- "id" : 9,
+ "name" : "tbl_act_9",
+ "id" : 13,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -5287,22 +4714,68 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [44],
- "actions" : ["act_6"],
- "base_default_next" : "node_17",
+ "action_ids" : [40],
+ "actions" : ["act_8"],
+ "base_default_next" : "node_23",
"next_tables" : {
- "act_6" : "node_17"
+ "act_8" : "node_23"
},
"default_entry" : {
- "action_id" : 44,
+ "action_id" : 40,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "tbl_drop_now",
- "id" : 10,
+ "name" : "tbl_act_10",
+ "id" : 14,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [41],
+ "actions" : ["act_9"],
+ "base_default_next" : "tbl_act_11",
+ "next_tables" : {
+ "act_9" : "tbl_act_11"
+ },
+ "default_entry" : {
+ "action_id" : 41,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_11",
+ "id" : 15,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [42],
+ "actions" : ["act_10"],
+ "base_default_next" : "tbl_spgw_ingress_gtpu_decap",
+ "next_tables" : {
+ "act_10" : "tbl_spgw_ingress_gtpu_decap"
+ },
+ "default_entry" : {
+ "action_id" : 42,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_spgw_ingress_gtpu_decap",
+ "id" : 16,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -5311,10 +4784,10 @@
"support_timeout" : false,
"direct_meters" : null,
"action_ids" : [9],
- "actions" : ["drop_now"],
- "base_default_next" : "tbl_act_8",
+ "actions" : ["FabricIngress.spgw_ingress.gtpu_decap"],
+ "base_default_next" : "node_33",
"next_tables" : {
- "drop_now" : "tbl_act_8"
+ "FabricIngress.spgw_ingress.gtpu_decap" : "node_33"
},
"default_entry" : {
"action_id" : 9,
@@ -5324,64 +4797,18 @@
}
},
{
- "name" : "tbl_act_8",
- "id" : 11,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [45],
- "actions" : ["act_7"],
- "base_default_next" : "tbl_spgw_ingress_gtpu_decap",
- "next_tables" : {
- "act_7" : "tbl_spgw_ingress_gtpu_decap"
- },
- "default_entry" : {
- "action_id" : 45,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_spgw_ingress_gtpu_decap",
- "id" : 12,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [10],
- "actions" : ["FabricIngress.spgw_ingress.gtpu_decap"],
- "base_default_next" : "node_27",
- "next_tables" : {
- "FabricIngress.spgw_ingress.gtpu_decap" : "node_27"
- },
- "default_entry" : {
- "action_id" : 10,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
"name" : "FabricIngress.spgw_ingress.dl_sess_lookup",
- "id" : 13,
+ "id" : 17,
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 68,
+ "line" : 69,
"column" : 10,
"source_fragment" : "dl_sess_lookup"
},
"key" : [
{
"match_type" : "exact",
- "name" : "ipv4.dst_addr",
+ "name" : "ipv4_dst",
"target" : ["ipv4", "dst_addr"],
"mask" : null
}
@@ -5392,84 +4819,15 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [11, 0],
- "actions" : ["FabricIngress.spgw_ingress.set_dl_sess_info", "NoAction"],
+ "action_ids" : [10, 0],
+ "actions" : ["FabricIngress.spgw_ingress.set_dl_sess_info", "nop"],
"base_default_next" : null,
"next_tables" : {
- "__HIT__" : "tbl_act_9",
- "__MISS__" : "tbl_act_10"
+ "__HIT__" : "tbl_act_12",
+ "__MISS__" : "tbl_act_13"
},
"default_entry" : {
"action_id" : 0,
- "action_const" : false,
- "action_data" : [],
- "action_entry_const" : false
- }
- },
- {
- "name" : "tbl_act_9",
- "id" : 14,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [46],
- "actions" : ["act_8"],
- "base_default_next" : "node_24",
- "next_tables" : {
- "act_8" : "node_24"
- },
- "default_entry" : {
- "action_id" : 46,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_10",
- "id" : 15,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [47],
- "actions" : ["act_9"],
- "base_default_next" : "node_24",
- "next_tables" : {
- "act_9" : "node_24"
- },
- "default_entry" : {
- "action_id" : 47,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_11",
- "id" : 16,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [48],
- "actions" : ["act_10"],
- "base_default_next" : "node_27",
- "next_tables" : {
- "act_10" : "node_27"
- },
- "default_entry" : {
- "action_id" : 48,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5477,29 +4835,6 @@
},
{
"name" : "tbl_act_12",
- "id" : 17,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [49],
- "actions" : ["act_11"],
- "base_default_next" : "node_27",
- "next_tables" : {
- "act_11" : "node_27"
- },
- "default_entry" : {
- "action_id" : 49,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_13",
"id" : 18,
"key" : [],
"match_type" : "exact",
@@ -5508,65 +4843,39 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [51],
- "actions" : ["act_13"],
- "base_default_next" : "FabricIngress.filtering.ingress_port_vlan",
+ "action_ids" : [43],
+ "actions" : ["act_11"],
+ "base_default_next" : "node_30",
"next_tables" : {
- "act_13" : "FabricIngress.filtering.ingress_port_vlan"
+ "act_11" : "node_30"
},
"default_entry" : {
- "action_id" : 51,
+ "action_id" : 43,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "FabricIngress.filtering.ingress_port_vlan",
+ "name" : "tbl_act_13",
"id" : 19,
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 66,
- "column" : 10,
- "source_fragment" : "ingress_port_vlan"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "standard_metadata.ingress_port",
- "target" : ["standard_metadata", "ingress_port"],
- "mask" : null
- },
- {
- "match_type" : "exact",
- "name" : "hdr.vlan_tag.is_valid",
- "target" : ["vlan_tag", "$valid$"],
- "mask" : null
- },
- {
- "match_type" : "ternary",
- "name" : "hdr.vlan_tag.vlan_id",
- "target" : ["vlan_tag", "vlan_id"],
- "mask" : null
- }
- ],
- "match_type" : "ternary",
+ "key" : [],
+ "match_type" : "exact",
"type" : "simple",
"max_size" : 1024,
- "with_counters" : true,
+ "with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [14, 13, 12, 15],
- "actions" : ["FabricIngress.filtering.push_internal_vlan", "FabricIngress.filtering.set_vlan", "FabricIngress.filtering.drop", "FabricIngress.filtering.nop_ingress_port_vlan"],
- "base_default_next" : null,
+ "action_ids" : [44],
+ "actions" : ["act_12"],
+ "base_default_next" : "node_30",
"next_tables" : {
- "__HIT__" : "tbl_act_14",
- "__MISS__" : "tbl_act_15"
+ "act_12" : "node_30"
},
"default_entry" : {
- "action_id" : 14,
+ "action_id" : 44,
"action_const" : true,
- "action_data" : ["0xffe"],
+ "action_data" : [],
"action_entry_const" : true
}
},
@@ -5580,14 +4889,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [52],
- "actions" : ["act_14"],
- "base_default_next" : "node_32",
+ "action_ids" : [45],
+ "actions" : ["act_13"],
+ "base_default_next" : "node_33",
"next_tables" : {
- "act_14" : "node_32"
+ "act_13" : "node_33"
},
"default_entry" : {
- "action_id" : 52,
+ "action_id" : 45,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5603,70 +4912,22 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [53],
- "actions" : ["act_15"],
- "base_default_next" : "node_32",
+ "action_ids" : [46],
+ "actions" : ["act_14"],
+ "base_default_next" : "node_33",
"next_tables" : {
- "act_15" : "node_32"
+ "act_14" : "node_33"
},
"default_entry" : {
- "action_id" : 53,
+ "action_id" : 46,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "FabricIngress.filtering.fwd_classifier",
- "id" : 22,
- "source_info" : {
- "filename" : "include/control/filtering.p4",
- "line" : 103,
- "column" : 10,
- "source_fragment" : "fwd_classifier"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "standard_metadata.ingress_port",
- "target" : ["standard_metadata", "ingress_port"],
- "mask" : null
- },
- {
- "match_type" : "ternary",
- "name" : "hdr.ethernet.dst_addr",
- "target" : ["ethernet", "dst_addr"],
- "mask" : null
- },
- {
- "match_type" : "exact",
- "name" : "hdr.vlan_tag.ether_type",
- "target" : ["vlan_tag", "ether_type"],
- "mask" : null
- }
- ],
- "match_type" : "ternary",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : true,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [16],
- "actions" : ["FabricIngress.filtering.set_forwarding_type"],
- "base_default_next" : "node_35",
- "next_tables" : {
- "FabricIngress.filtering.set_forwarding_type" : "node_35"
- },
- "default_entry" : {
- "action_id" : 16,
- "action_const" : true,
- "action_data" : ["0x0"],
- "action_entry_const" : true
- }
- },
- {
"name" : "tbl_act_16",
- "id" : 23,
+ "id" : 22,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -5674,14 +4935,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [54],
+ "action_ids" : [48],
"actions" : ["act_16"],
"base_default_next" : "node_35",
"next_tables" : {
"act_16" : "node_35"
},
"default_entry" : {
- "action_id" : 54,
+ "action_id" : 48,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5689,23 +4950,23 @@
},
{
"name" : "FabricIngress.forwarding.bridging",
- "id" : 24,
+ "id" : 23,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 41,
+ "line" : 43,
"column" : 10,
"source_fragment" : "bridging"
},
"key" : [
{
"match_type" : "exact",
- "name" : "hdr.vlan_tag.vlan_id",
- "target" : ["vlan_tag", "vlan_id"],
+ "name" : "vlan_id",
+ "target" : ["scalars", "fabric_metadata_t.vlan_id"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.ethernet.dst_addr",
+ "name" : "eth_dst",
"target" : ["ethernet", "dst_addr"],
"mask" : null
}
@@ -5716,34 +4977,34 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [17, 2],
- "actions" : ["FabricIngress.forwarding.set_next_id_bridging", "NoAction"],
- "base_default_next" : "FabricIngress.forwarding.acl",
+ "action_ids" : [15, 2],
+ "actions" : ["FabricIngress.forwarding.set_next_id_bridging", "nop"],
+ "base_default_next" : "FabricIngress.acl.acl",
"next_tables" : {
- "FabricIngress.forwarding.set_next_id_bridging" : "FabricIngress.forwarding.acl",
- "NoAction" : "FabricIngress.forwarding.acl"
+ "FabricIngress.forwarding.set_next_id_bridging" : "FabricIngress.acl.acl",
+ "nop" : "FabricIngress.acl.acl"
},
"default_entry" : {
"action_id" : 2,
- "action_const" : false,
+ "action_const" : true,
"action_data" : [],
- "action_entry_const" : false
+ "action_entry_const" : true
}
},
{
"name" : "FabricIngress.forwarding.mpls",
- "id" : 25,
+ "id" : 24,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 65,
+ "line" : 67,
"column" : 10,
"source_fragment" : "mpls"
},
"key" : [
{
"match_type" : "exact",
- "name" : "hdr.mpls.label",
- "target" : ["mpls", "label"],
+ "name" : "mpls_label",
+ "target" : ["scalars", "fabric_metadata_t.mpls_label"],
"mask" : null
}
],
@@ -5753,38 +5014,15 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [18, 3],
- "actions" : ["FabricIngress.forwarding.pop_mpls_and_next", "NoAction"],
- "base_default_next" : "tbl_act_17",
+ "action_ids" : [16, 3],
+ "actions" : ["FabricIngress.forwarding.pop_mpls_and_next", "nop"],
+ "base_default_next" : "FabricIngress.acl.acl",
"next_tables" : {
- "FabricIngress.forwarding.pop_mpls_and_next" : "tbl_act_17",
- "NoAction" : "tbl_act_17"
+ "FabricIngress.forwarding.pop_mpls_and_next" : "FabricIngress.acl.acl",
+ "nop" : "FabricIngress.acl.acl"
},
"default_entry" : {
"action_id" : 3,
- "action_const" : false,
- "action_data" : [],
- "action_entry_const" : false
- }
- },
- {
- "name" : "tbl_act_17",
- "id" : 26,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [55],
- "actions" : ["act_17"],
- "base_default_next" : "FabricIngress.forwarding.acl",
- "next_tables" : {
- "act_17" : "FabricIngress.forwarding.acl"
- },
- "default_entry" : {
- "action_id" : 55,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -5792,17 +5030,17 @@
},
{
"name" : "FabricIngress.forwarding.routing_v4",
- "id" : 27,
+ "id" : 25,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 91,
+ "line" : 93,
"column" : 10,
"source_fragment" : "routing_v4"
},
"key" : [
{
"match_type" : "lpm",
- "name" : "hdr.ipv4.dst_addr",
+ "name" : "ipv4_dst",
"target" : ["ipv4", "dst_addr"],
"mask" : null
}
@@ -5813,100 +5051,100 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [19, 20, 4],
- "actions" : ["FabricIngress.forwarding.set_next_id_routing_v4", "FabricIngress.forwarding.nop_routing_v4", "NoAction"],
- "base_default_next" : "FabricIngress.forwarding.acl",
+ "action_ids" : [17, 18, 4],
+ "actions" : ["FabricIngress.forwarding.set_next_id_routing_v4", "FabricIngress.forwarding.nop_routing_v4", "nop"],
+ "base_default_next" : "FabricIngress.acl.acl",
"next_tables" : {
- "FabricIngress.forwarding.set_next_id_routing_v4" : "FabricIngress.forwarding.acl",
- "FabricIngress.forwarding.nop_routing_v4" : "FabricIngress.forwarding.acl",
- "NoAction" : "FabricIngress.forwarding.acl"
+ "FabricIngress.forwarding.set_next_id_routing_v4" : "FabricIngress.acl.acl",
+ "FabricIngress.forwarding.nop_routing_v4" : "FabricIngress.acl.acl",
+ "nop" : "FabricIngress.acl.acl"
},
"default_entry" : {
"action_id" : 4,
- "action_const" : false,
+ "action_const" : true,
"action_data" : [],
- "action_entry_const" : false
+ "action_entry_const" : true
}
},
{
- "name" : "FabricIngress.forwarding.acl",
- "id" : 28,
+ "name" : "FabricIngress.acl.acl",
+ "id" : 26,
"source_info" : {
- "filename" : "include/control/forwarding.p4",
- "line" : 136,
+ "filename" : "include/control/acl.p4",
+ "line" : 60,
"column" : 10,
"source_fragment" : "acl"
},
"key" : [
{
"match_type" : "ternary",
- "name" : "standard_metadata.ingress_port",
+ "name" : "ig_port",
"target" : ["standard_metadata", "ingress_port"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "fabric_metadata.ip_proto",
+ "name" : "ip_proto",
"target" : ["scalars", "fabric_metadata_t.ip_proto"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "fabric_metadata.l4_src_port",
- "target" : ["scalars", "fabric_metadata_t.l4_src_port"],
+ "name" : "l4_sport",
+ "target" : ["scalars", "fabric_metadata_t.l4_sport"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "fabric_metadata.l4_dst_port",
- "target" : ["scalars", "fabric_metadata_t.l4_dst_port"],
+ "name" : "l4_dport",
+ "target" : ["scalars", "fabric_metadata_t.l4_dport"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.ethernet.dst_addr",
+ "name" : "eth_src",
"target" : ["ethernet", "dst_addr"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.ethernet.src_addr",
+ "name" : "eth_dst",
"target" : ["ethernet", "src_addr"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.vlan_tag.vlan_id",
+ "name" : "vlan_id",
"target" : ["vlan_tag", "vlan_id"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.vlan_tag.ether_type",
- "target" : ["vlan_tag", "ether_type"],
+ "name" : "eth_type",
+ "target" : ["scalars", "fabric_metadata_t.eth_type"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.ipv4.src_addr",
+ "name" : "ipv4_src",
"target" : ["ipv4", "src_addr"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.ipv4.dst_addr",
+ "name" : "ipv4_dst",
"target" : ["ipv4", "dst_addr"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.icmp.icmp_type",
+ "name" : "icmp_type",
"target" : ["icmp", "icmp_type"],
"mask" : null
},
{
"match_type" : "ternary",
- "name" : "hdr.icmp.icmp_code",
+ "name" : "icmp_code",
"target" : ["icmp", "icmp_code"],
"mask" : null
}
@@ -5917,26 +5155,178 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [21, 22, 23, 24, 25],
- "actions" : ["FabricIngress.forwarding.set_next_id_acl", "FabricIngress.forwarding.punt_to_cpu", "FabricIngress.forwarding.clone_to_cpu", "FabricIngress.forwarding.drop", "FabricIngress.forwarding.nop_acl"],
- "base_default_next" : "tbl_act_18",
+ "action_ids" : [19, 20, 21, 22, 23],
+ "actions" : ["FabricIngress.acl.set_next_id_acl", "FabricIngress.acl.punt_to_cpu", "FabricIngress.acl.clone_to_cpu", "FabricIngress.acl.drop", "FabricIngress.acl.nop_acl"],
+ "base_default_next" : "node_43",
"next_tables" : {
- "FabricIngress.forwarding.set_next_id_acl" : "tbl_act_18",
- "FabricIngress.forwarding.punt_to_cpu" : "tbl_act_18",
- "FabricIngress.forwarding.clone_to_cpu" : "tbl_act_18",
- "FabricIngress.forwarding.drop" : "tbl_act_18",
- "FabricIngress.forwarding.nop_acl" : "tbl_act_18"
+ "FabricIngress.acl.set_next_id_acl" : "node_43",
+ "FabricIngress.acl.punt_to_cpu" : "node_43",
+ "FabricIngress.acl.clone_to_cpu" : "node_43",
+ "FabricIngress.acl.drop" : "node_43",
+ "FabricIngress.acl.nop_acl" : "node_43"
},
"default_entry" : {
- "action_id" : 25,
+ "action_id" : 23,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "tbl_act_18",
+ "name" : "FabricIngress.next.xconnect",
+ "id" : 27,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 103,
+ "column" : 10,
+ "source_fragment" : "xconnect"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "ig_port",
+ "target" : ["standard_metadata", "ingress_port"],
+ "mask" : null
+ },
+ {
+ "match_type" : "exact",
+ "name" : "next_id",
+ "target" : ["scalars", "fabric_metadata_t.next_id"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [25, 26, 6],
+ "actions" : ["FabricIngress.next.output_xconnect", "FabricIngress.next.set_next_id_xconnect", "nop"],
+ "base_default_next" : "FabricIngress.next.hashed",
+ "next_tables" : {
+ "FabricIngress.next.output_xconnect" : "FabricIngress.next.hashed",
+ "FabricIngress.next.set_next_id_xconnect" : "FabricIngress.next.hashed",
+ "nop" : "FabricIngress.next.hashed"
+ },
+ "default_entry" : {
+ "action_id" : 6,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "FabricIngress.next.hashed",
+ "id" : 28,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 180,
+ "column" : 10,
+ "source_fragment" : "hashed"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "next_id",
+ "target" : ["scalars", "fabric_metadata_t.next_id"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "exact",
+ "type" : "indirect_ws",
+ "action_profile" : "FabricIngress.next.hashed_selector",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [27, 28, 29, 7],
+ "actions" : ["FabricIngress.next.output_hashed", "FabricIngress.next.routing_hashed", "FabricIngress.next.mpls_routing_hashed", "nop"],
+ "base_default_next" : "FabricIngress.next.multicast",
+ "next_tables" : {
+ "FabricIngress.next.output_hashed" : "FabricIngress.next.multicast",
+ "FabricIngress.next.routing_hashed" : "FabricIngress.next.multicast",
+ "FabricIngress.next.mpls_routing_hashed" : "FabricIngress.next.multicast",
+ "nop" : "FabricIngress.next.multicast"
+ }
+ },
+ {
+ "name" : "FabricIngress.next.multicast",
"id" : 29,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 213,
+ "column" : 10,
+ "source_fragment" : "multicast"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "next_id",
+ "target" : ["scalars", "fabric_metadata_t.next_id"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [30, 8],
+ "actions" : ["FabricIngress.next.set_mcast_group_id", "nop"],
+ "base_default_next" : "FabricIngress.next.next_vlan",
+ "next_tables" : {
+ "FabricIngress.next.set_mcast_group_id" : "FabricIngress.next.next_vlan",
+ "nop" : "FabricIngress.next.next_vlan"
+ },
+ "default_entry" : {
+ "action_id" : 8,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "FabricIngress.next.next_vlan",
+ "id" : 30,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 74,
+ "column" : 10,
+ "source_fragment" : "next_vlan"
+ },
+ "key" : [
+ {
+ "match_type" : "exact",
+ "name" : "next_id",
+ "target" : ["scalars", "fabric_metadata_t.next_id"],
+ "mask" : null
+ }
+ ],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : true,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [24, 5],
+ "actions" : ["FabricIngress.next.set_vlan", "nop"],
+ "base_default_next" : "node_48",
+ "next_tables" : {
+ "FabricIngress.next.set_vlan" : "node_48",
+ "nop" : "node_48"
+ },
+ "default_entry" : {
+ "action_id" : 5,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_17",
+ "id" : 31,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -5944,95 +5334,21 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [56],
- "actions" : ["act_18"],
- "base_default_next" : "FabricIngress.next.vlan_meta",
+ "action_ids" : [49],
+ "actions" : ["act_17"],
+ "base_default_next" : "node_50",
"next_tables" : {
- "act_18" : "FabricIngress.next.vlan_meta"
+ "act_17" : "node_50"
},
"default_entry" : {
- "action_id" : 56,
+ "action_id" : 49,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "FabricIngress.next.vlan_meta",
- "id" : 30,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 65,
- "column" : 10,
- "source_fragment" : "vlan_meta"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "fabric_metadata.next_id",
- "target" : ["scalars", "fabric_metadata_t.next_id"],
- "mask" : null
- }
- ],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : true,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [26, 8],
- "actions" : ["FabricIngress.next.set_vlan", "nop"],
- "base_default_next" : "FabricIngress.next.simple",
- "next_tables" : {
- "FabricIngress.next.set_vlan" : "FabricIngress.next.simple",
- "nop" : "FabricIngress.next.simple"
- },
- "default_entry" : {
- "action_id" : 8,
- "action_const" : false,
- "action_data" : [],
- "action_entry_const" : false
- }
- },
- {
- "name" : "FabricIngress.next.simple",
- "id" : 31,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 122,
- "column" : 10,
- "source_fragment" : "simple"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "fabric_metadata.next_id",
- "target" : ["scalars", "fabric_metadata_t.next_id"],
- "mask" : null
- }
- ],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : true,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [27, 28, 29, 30, 31, 32, 5],
- "actions" : ["FabricIngress.next.output_simple", "FabricIngress.next.set_vlan_output", "FabricIngress.next.l3_routing_simple", "FabricIngress.next.mpls_routing_v4_simple", "FabricIngress.next.mpls_routing_v6_simple", "FabricIngress.next.l3_routing_vlan", "NoAction"],
- "base_default_next" : null,
- "next_tables" : {
- "__HIT__" : "tbl_act_19",
- "__MISS__" : "tbl_act_20"
- },
- "default_entry" : {
- "action_id" : 5,
- "action_const" : false,
- "action_data" : [],
- "action_entry_const" : false
- }
- },
- {
- "name" : "tbl_act_19",
+ "name" : "tbl_act_18",
"id" : 32,
"key" : [],
"match_type" : "exact",
@@ -6041,290 +5357,14 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [57],
- "actions" : ["act_19"],
- "base_default_next" : "node_48",
- "next_tables" : {
- "act_19" : "node_48"
- },
- "default_entry" : {
- "action_id" : 57,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_20",
- "id" : 33,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [58],
- "actions" : ["act_20"],
- "base_default_next" : "node_48",
- "next_tables" : {
- "act_20" : "node_48"
- },
- "default_entry" : {
- "action_id" : 58,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "FabricIngress.next.hashed",
- "id" : 34,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 175,
- "column" : 10,
- "source_fragment" : "hashed"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "fabric_metadata.next_id",
- "target" : ["scalars", "fabric_metadata_t.next_id"],
- "mask" : null
- }
- ],
- "match_type" : "exact",
- "type" : "indirect_ws",
- "action_profile" : "FabricIngress.next.ecmp_selector",
- "max_size" : 1024,
- "with_counters" : true,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [33, 34, 35, 6],
- "actions" : ["FabricIngress.next.l3_routing_hashed", "FabricIngress.next.mpls_routing_v4_hashed", "FabricIngress.next.mpls_routing_v6_hashed", "NoAction"],
+ "action_ids" : [50],
+ "actions" : ["act_18"],
"base_default_next" : null,
"next_tables" : {
- "__HIT__" : "tbl_act_21",
- "__MISS__" : "tbl_act_22"
- }
- },
- {
- "name" : "tbl_act_21",
- "id" : 35,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [59],
- "actions" : ["act_21"],
- "base_default_next" : "node_52",
- "next_tables" : {
- "act_21" : "node_52"
+ "act_18" : null
},
"default_entry" : {
- "action_id" : 59,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_22",
- "id" : 36,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [60],
- "actions" : ["act_22"],
- "base_default_next" : "node_52",
- "next_tables" : {
- "act_22" : "node_52"
- },
- "default_entry" : {
- "action_id" : 60,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "FabricIngress.next.multicast",
- "id" : 37,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 207,
- "column" : 10,
- "source_fragment" : "multicast"
- },
- "key" : [
- {
- "match_type" : "exact",
- "name" : "fabric_metadata.next_id",
- "target" : ["scalars", "fabric_metadata_t.next_id"],
- "mask" : null
- }
- ],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : true,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [36, 7],
- "actions" : ["FabricIngress.next.set_mcast_group", "NoAction"],
- "base_default_next" : null,
- "next_tables" : {
- "__HIT__" : "tbl_act_23",
- "__MISS__" : "tbl_act_24"
- },
- "default_entry" : {
- "action_id" : 7,
- "action_const" : false,
- "action_data" : [],
- "action_entry_const" : false
- }
- },
- {
- "name" : "tbl_act_23",
- "id" : 38,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [61],
- "actions" : ["act_23"],
- "base_default_next" : "node_56",
- "next_tables" : {
- "act_23" : "node_56"
- },
- "default_entry" : {
- "action_id" : 61,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_24",
- "id" : 39,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [62],
- "actions" : ["act_24"],
- "base_default_next" : "node_56",
- "next_tables" : {
- "act_24" : "node_56"
- },
- "default_entry" : {
- "action_id" : 62,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_25",
- "id" : 40,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [63],
- "actions" : ["act_25"],
- "base_default_next" : "node_58",
- "next_tables" : {
- "act_25" : "node_58"
- },
- "default_entry" : {
- "action_id" : 63,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_26",
- "id" : 41,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [64],
- "actions" : ["act_26"],
- "base_default_next" : "node_62",
- "next_tables" : {
- "act_26" : "node_62"
- },
- "default_entry" : {
- "action_id" : 64,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_27",
- "id" : 42,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [65],
- "actions" : ["act_27"],
- "base_default_next" : "node_64",
- "next_tables" : {
- "act_27" : "node_64"
- },
- "default_entry" : {
- "action_id" : 65,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_28",
- "id" : 43,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [66],
- "actions" : ["act_28"],
- "base_default_next" : null,
- "next_tables" : {
- "act_28" : null
- },
- "default_entry" : {
- "action_id" : 66,
+ "action_id" : 50,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -6333,13 +5373,13 @@
],
"action_profiles" : [
{
- "name" : "FabricIngress.next.ecmp_selector",
+ "name" : "FabricIngress.next.hashed_selector",
"id" : 0,
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 145,
+ "line" : 161,
"column" : 55,
- "source_fragment" : "ecmp_selector"
+ "source_fragment" : "hashed_selector"
},
"max_size" : 64,
"selector" : {
@@ -6359,11 +5399,11 @@
},
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_src_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_sport"]
},
{
"type" : "field",
- "value" : ["scalars", "fabric_metadata_t.l4_dst_port"]
+ "value" : ["scalars", "fabric_metadata_t.l4_dport"]
}
]
}
@@ -6415,7 +5455,7 @@
"left" : null,
"right" : {
"type" : "field",
- "value" : ["scalars", "spgw_normalizer_hasReturned_0"]
+ "value" : ["scalars", "spgw_normalizer_hasReturned"]
}
}
}
@@ -6452,7 +5492,7 @@
"id" : 3,
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 25,
+ "line" : 24,
"column" : 12,
"source_fragment" : "hdr.packet_out.isValid()"
},
@@ -6468,14 +5508,67 @@
}
},
"true_next" : "tbl_act_4",
- "false_next" : "tbl_act_5"
+ "false_next" : "node_12"
},
{
- "name" : "node_13",
+ "name" : "node_12",
"id" : 4,
"source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 102,
+ "column" : 12,
+ "source_fragment" : "hdr.vlan_tag.isValid()"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["vlan_tag", "$valid$"]
+ }
+ }
+ },
+ "true_next" : "tbl_act_5",
+ "false_next" : "node_14"
+ },
+ {
+ "name" : "node_14",
+ "id" : 5,
+ "source_info" : {
+ "filename" : "include/control/filtering.p4",
+ "line" : 108,
+ "column" : 12,
+ "source_fragment" : "!hdr.mpls.isValid()"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "not",
+ "left" : null,
+ "right" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["mpls", "$valid$"]
+ }
+ }
+ }
+ }
+ },
+ "true_next" : "tbl_act_6",
+ "false_next" : "FabricIngress.filtering.ingress_port_vlan"
+ },
+ {
+ "name" : "node_19",
+ "id" : 6,
+ "source_info" : {
"filename" : "include/spgw.p4",
- "line" : 139,
+ "line" : 143,
"column" : 12,
"source_fragment" : "gtpu.isValid()"
},
@@ -6494,11 +5587,11 @@
"false_next" : "FabricIngress.spgw_ingress.dl_sess_lookup"
},
{
- "name" : "node_17",
- "id" : 5,
+ "name" : "node_23",
+ "id" : 7,
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 143,
+ "line" : 147,
"column" : 16,
"source_fragment" : "!s1u_filter_table.apply().hit"
},
@@ -6514,18 +5607,18 @@
"left" : null,
"right" : {
"type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_1"]
+ "value" : ["scalars", "spgw_ingress_tmp"]
}
}
}
}
},
- "true_next" : "tbl_drop_now",
- "false_next" : "tbl_act_8"
+ "true_next" : "tbl_act_10",
+ "false_next" : "tbl_act_11"
},
{
- "name" : "node_24",
- "id" : 6,
+ "name" : "node_30",
+ "id" : 8,
"expression" : {
"type" : "expression",
"value" : {
@@ -6533,16 +5626,16 @@
"left" : null,
"right" : {
"type" : "field",
- "value" : ["scalars", "spgw_ingress_tmp_2"]
+ "value" : ["scalars", "spgw_ingress_tmp_0"]
}
}
},
- "true_next" : "tbl_act_11",
- "false_next" : "tbl_act_12"
+ "true_next" : "tbl_act_14",
+ "false_next" : "tbl_act_15"
},
{
- "name" : "node_27",
- "id" : 7,
+ "name" : "node_33",
+ "id" : 9,
"expression" : {
"type" : "expression",
"value" : {
@@ -6555,39 +5648,55 @@
"left" : null,
"right" : {
"type" : "field",
- "value" : ["scalars", "spgw_ingress_hasReturned_0"]
+ "value" : ["scalars", "spgw_ingress_hasReturned"]
}
}
}
}
},
- "true_next" : "tbl_act_13",
- "false_next" : "FabricIngress.filtering.ingress_port_vlan"
- },
- {
- "name" : "node_32",
- "id" : 8,
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "filtering_tmp_0"]
- }
- }
- },
- "true_next" : "FabricIngress.filtering.fwd_classifier",
- "false_next" : "tbl_act_16"
+ "true_next" : "tbl_act_16",
+ "false_next" : "node_35"
},
{
"name" : "node_35",
- "id" : 9,
+ "id" : 10,
+ "source_info" : {
+ "filename" : "fabric.p4",
+ "line" : 66,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.skip_forwarding == false"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "==",
+ "left" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.skip_forwarding"]
+ }
+ }
+ },
+ "right" : {
+ "type" : "bool",
+ "value" : false
+ }
+ }
+ },
+ "true_next" : "node_36",
+ "false_next" : "FabricIngress.acl.acl"
+ },
+ {
+ "name" : "node_36",
+ "id" : 11,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 191,
- "column" : 11,
+ "line" : 131,
+ "column" : 12,
"source_fragment" : "fabric_metadata.fwd_type == FWD_BRIDGING"
},
"expression" : {
@@ -6605,14 +5714,14 @@
}
},
"true_next" : "FabricIngress.forwarding.bridging",
- "false_next" : "node_37"
+ "false_next" : "node_38"
},
{
- "name" : "node_37",
- "id" : 10,
+ "name" : "node_38",
+ "id" : 12,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 192,
+ "line" : 132,
"column" : 17,
"source_fragment" : "fabric_metadata.fwd_type == FWD_MPLS"
},
@@ -6635,10 +5744,10 @@
},
{
"name" : "node_40",
- "id" : 11,
+ "id" : 13,
"source_info" : {
"filename" : "include/control/forwarding.p4",
- "line" : 198,
+ "line" : 133,
"column" : 17,
"source_fragment" : "fabric_metadata.fwd_type == FWD_IPV4_UNICAST"
},
@@ -6657,181 +5766,47 @@
}
},
"true_next" : "FabricIngress.forwarding.routing_v4",
- "false_next" : "FabricIngress.forwarding.acl"
+ "false_next" : "FabricIngress.acl.acl"
+ },
+ {
+ "name" : "node_43",
+ "id" : 14,
+ "source_info" : {
+ "filename" : "fabric.p4",
+ "line" : 70,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.skip_next == false"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "==",
+ "left" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.skip_next"]
+ }
+ }
+ },
+ "right" : {
+ "type" : "bool",
+ "value" : false
+ }
+ }
+ },
+ "false_next" : null,
+ "true_next" : "FabricIngress.next.xconnect"
},
{
"name" : "node_48",
- "id" : 12,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 219,
- "column" : 12,
- "source_fragment" : "!simple.apply().hit"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "not",
- "left" : null,
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "next_tmp_4"]
- }
- }
- }
- }
- },
- "true_next" : "FabricIngress.next.hashed",
- "false_next" : "node_58"
- },
- {
- "name" : "node_52",
- "id" : 13,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 220,
- "column" : 16,
- "source_fragment" : "!hashed.apply().hit"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "not",
- "left" : null,
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "next_tmp_3"]
- }
- }
- }
- }
- },
- "true_next" : "FabricIngress.next.multicast",
- "false_next" : "node_58"
- },
- {
- "name" : "node_56",
- "id" : 14,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 221,
- "column" : 20,
- "source_fragment" : "!multicast.apply().hit"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "not",
- "left" : null,
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "next_tmp_2"]
- }
- }
- }
- }
- },
- "true_next" : "tbl_act_25",
- "false_next" : "node_58"
- },
- {
- "name" : "node_58",
"id" : 15,
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "not",
- "left" : null,
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "next_hasReturned_0"]
- }
- }
- }
- }
- },
- "true_next" : "node_59",
- "false_next" : "node_62"
- },
- {
- "name" : "node_59",
- "id" : 16,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 228,
- "column" : 12,
- "source_fragment" : "!hdr.mpls.isValid()"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "not",
- "left" : null,
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["mpls", "$valid$"]
- }
- }
- }
- }
- },
- "true_next" : "node_60",
- "false_next" : "node_62"
- },
- {
- "name" : "node_60",
- "id" : 17,
- "source_info" : {
- "filename" : "include/control/next.p4",
- "line" : 229,
- "column" : 15,
- "source_fragment" : "hdr.ipv4.isValid()"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["ipv4", "$valid$"]
- }
- }
- },
- "true_next" : "tbl_act_26",
- "false_next" : "node_62"
- },
- {
- "name" : "node_62",
- "id" : 18,
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 27,
+ "line" : 30,
"column" : 12,
"source_fragment" : "standard_metadata.egress_spec < 511"
},
@@ -6849,15 +5824,15 @@
}
}
},
- "true_next" : "tbl_act_27",
- "false_next" : "node_64"
+ "true_next" : "tbl_act_17",
+ "false_next" : "node_50"
},
{
- "name" : "node_64",
- "id" : 19,
+ "name" : "node_50",
+ "id" : 16,
"source_info" : {
"filename" : "include/control/port_counter.p4",
- "line" : 30,
+ "line" : 33,
"column" : 12,
"source_fragment" : "standard_metadata.ingress_port < 511"
},
@@ -6876,7 +5851,7 @@
}
},
"false_next" : null,
- "true_next" : "tbl_act_28"
+ "true_next" : "tbl_act_18"
}
]
},
@@ -6885,15 +5860,15 @@
"id" : 1,
"source_info" : {
"filename" : "fabric.p4",
- "line" : 80,
+ "line" : 84,
"column" : 8,
"source_fragment" : "FabricEgress"
},
- "init_table" : "node_68",
+ "init_table" : "node_54",
"tables" : [
{
- "name" : "tbl_pkt_io_egress_pop_vlan",
- "id" : 44,
+ "name" : "tbl_act_19",
+ "id" : 33,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -6901,22 +5876,22 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [71],
- "actions" : ["FabricEgress.pkt_io_egress.pop_vlan"],
- "base_default_next" : "node_72",
+ "action_ids" : [57],
+ "actions" : ["act_19"],
+ "base_default_next" : "tbl_act_20",
"next_tables" : {
- "FabricEgress.pkt_io_egress.pop_vlan" : "node_72"
+ "act_19" : "tbl_act_20"
},
"default_entry" : {
- "action_id" : 71,
+ "action_id" : 57,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "tbl_drop_now_0",
- "id" : 45,
+ "name" : "tbl_act_20",
+ "id" : 34,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -6924,45 +5899,22 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [68],
- "actions" : ["drop_now"],
- "base_default_next" : "tbl_act_29",
- "next_tables" : {
- "drop_now" : "tbl_act_29"
- },
- "default_entry" : {
- "action_id" : 68,
- "action_const" : true,
- "action_data" : [],
- "action_entry_const" : true
- }
- },
- {
- "name" : "tbl_act_29",
- "id" : 46,
- "key" : [],
- "match_type" : "exact",
- "type" : "simple",
- "max_size" : 1024,
- "with_counters" : false,
- "support_timeout" : false,
- "direct_meters" : null,
- "action_ids" : [73],
- "actions" : ["act_29"],
+ "action_ids" : [58],
+ "actions" : ["act_20"],
"base_default_next" : null,
"next_tables" : {
- "act_29" : null
+ "act_20" : null
},
"default_entry" : {
- "action_id" : 73,
+ "action_id" : 58,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
}
},
{
- "name" : "tbl_drop_now_1",
- "id" : 47,
+ "name" : "tbl_act_21",
+ "id" : 35,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -6970,14 +5922,60 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [69],
- "actions" : ["drop_now"],
- "base_default_next" : "FabricEgress.egress_next.egress_vlan",
+ "action_ids" : [59],
+ "actions" : ["act_21"],
+ "base_default_next" : "node_61",
"next_tables" : {
- "drop_now" : "FabricEgress.egress_next.egress_vlan"
+ "act_21" : "node_61"
},
"default_entry" : {
- "action_id" : 69,
+ "action_id" : 59,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_egress_next_pop_mpls_if_present",
+ "id" : 36,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [53],
+ "actions" : ["FabricEgress.egress_next.pop_mpls_if_present"],
+ "base_default_next" : "FabricEgress.egress_next.egress_vlan",
+ "next_tables" : {
+ "FabricEgress.egress_next.pop_mpls_if_present" : "FabricEgress.egress_next.egress_vlan"
+ },
+ "default_entry" : {
+ "action_id" : 53,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_egress_next_set_mpls",
+ "id" : 37,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [54],
+ "actions" : ["FabricEgress.egress_next.set_mpls"],
+ "base_default_next" : "FabricEgress.egress_next.egress_vlan",
+ "next_tables" : {
+ "FabricEgress.egress_next.set_mpls" : "FabricEgress.egress_next.egress_vlan"
+ },
+ "default_entry" : {
+ "action_id" : 54,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -6985,23 +5983,23 @@
},
{
"name" : "FabricEgress.egress_next.egress_vlan",
- "id" : 48,
+ "id" : 38,
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 258,
+ "line" : 285,
"column" : 10,
"source_fragment" : "egress_vlan"
},
"key" : [
{
"match_type" : "exact",
- "name" : "hdr.vlan_tag.vlan_id",
- "target" : ["vlan_tag", "vlan_id"],
+ "name" : "vlan_id",
+ "target" : ["scalars", "fabric_metadata_t.vlan_id"],
"mask" : null
},
{
"match_type" : "exact",
- "name" : "standard_metadata.egress_port",
+ "name" : "eg_port",
"target" : ["standard_metadata", "egress_port"],
"mask" : null
}
@@ -7012,23 +6010,23 @@
"with_counters" : true,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [72, 67],
+ "action_ids" : [56, 51],
"actions" : ["FabricEgress.egress_next.pop_vlan", "nop"],
- "base_default_next" : "node_78",
+ "base_default_next" : null,
"next_tables" : {
- "FabricEgress.egress_next.pop_vlan" : "node_78",
- "nop" : "node_78"
+ "__HIT__" : "tbl_act_22",
+ "__MISS__" : "tbl_act_23"
},
"default_entry" : {
- "action_id" : 67,
- "action_const" : false,
+ "action_id" : 51,
+ "action_const" : true,
"action_data" : [],
- "action_entry_const" : false
+ "action_entry_const" : true
}
},
{
- "name" : "tbl_spgw_egress_gtpu_encap",
- "id" : 49,
+ "name" : "tbl_act_22",
+ "id" : 39,
"key" : [],
"match_type" : "exact",
"type" : "simple",
@@ -7036,14 +6034,175 @@
"with_counters" : false,
"support_timeout" : false,
"direct_meters" : null,
- "action_ids" : [70],
+ "action_ids" : [60],
+ "actions" : ["act_22"],
+ "base_default_next" : "node_68",
+ "next_tables" : {
+ "act_22" : "node_68"
+ },
+ "default_entry" : {
+ "action_id" : 60,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_23",
+ "id" : 40,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [61],
+ "actions" : ["act_23"],
+ "base_default_next" : "node_68",
+ "next_tables" : {
+ "act_23" : "node_68"
+ },
+ "default_entry" : {
+ "action_id" : 61,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_egress_next_push_vlan",
+ "id" : 41,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [55],
+ "actions" : ["FabricEgress.egress_next.push_vlan"],
+ "base_default_next" : "node_71",
+ "next_tables" : {
+ "FabricEgress.egress_next.push_vlan" : "node_71"
+ },
+ "default_entry" : {
+ "action_id" : 55,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_24",
+ "id" : 42,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [63],
+ "actions" : ["act_25"],
+ "base_default_next" : "node_73",
+ "next_tables" : {
+ "act_25" : "node_73"
+ },
+ "default_entry" : {
+ "action_id" : 63,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_25",
+ "id" : 43,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [62],
+ "actions" : ["act_24"],
+ "base_default_next" : "node_79",
+ "next_tables" : {
+ "act_24" : "node_79"
+ },
+ "default_entry" : {
+ "action_id" : 62,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_26",
+ "id" : 44,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [65],
+ "actions" : ["act_27"],
+ "base_default_next" : "node_77",
+ "next_tables" : {
+ "act_27" : "node_77"
+ },
+ "default_entry" : {
+ "action_id" : 65,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_act_27",
+ "id" : 45,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [64],
+ "actions" : ["act_26"],
+ "base_default_next" : "node_79",
+ "next_tables" : {
+ "act_26" : "node_79"
+ },
+ "default_entry" : {
+ "action_id" : 64,
+ "action_const" : true,
+ "action_data" : [],
+ "action_entry_const" : true
+ }
+ },
+ {
+ "name" : "tbl_spgw_egress_gtpu_encap",
+ "id" : 46,
+ "key" : [],
+ "match_type" : "exact",
+ "type" : "simple",
+ "max_size" : 1024,
+ "with_counters" : false,
+ "support_timeout" : false,
+ "direct_meters" : null,
+ "action_ids" : [52],
"actions" : ["FabricEgress.spgw_egress.gtpu_encap"],
"base_default_next" : null,
"next_tables" : {
"FabricEgress.spgw_egress.gtpu_encap" : null
},
"default_entry" : {
- "action_id" : 70,
+ "action_id" : 52,
"action_const" : true,
"action_data" : [],
"action_entry_const" : true
@@ -7053,11 +6212,11 @@
"action_profiles" : [],
"conditionals" : [
{
- "name" : "node_68",
- "id" : 20,
+ "name" : "node_54",
+ "id" : 17,
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 44,
+ "line" : 39,
"column" : 12,
"source_fragment" : "fabric_metadata.is_controller_packet_out == true"
},
@@ -7083,14 +6242,14 @@
}
},
"true_next" : null,
- "false_next" : "node_69"
+ "false_next" : "node_55"
},
{
- "name" : "node_69",
- "id" : 21,
+ "name" : "node_55",
+ "id" : 18,
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 48,
+ "line" : 43,
"column" : 12,
"source_fragment" : "standard_metadata.egress_port == 255"
},
@@ -7108,65 +6267,15 @@
}
}
},
- "true_next" : "node_70",
- "false_next" : "node_75"
+ "true_next" : "node_56",
+ "false_next" : "node_59"
},
{
- "name" : "node_70",
- "id" : 22,
+ "name" : "node_56",
+ "id" : 19,
"source_info" : {
"filename" : "include/control/packetio.p4",
- "line" : 49,
- "column" : 16,
- "source_fragment" : "hdr.vlan_tag.isValid() && fabric_metadata.pop_vlan_when_packet_in == true"
- },
- "expression" : {
- "type" : "expression",
- "value" : {
- "op" : "and",
- "left" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["vlan_tag", "$valid$"]
- }
- }
- },
- "right" : {
- "type" : "expression",
- "value" : {
- "op" : "==",
- "left" : {
- "type" : "expression",
- "value" : {
- "op" : "d2b",
- "left" : null,
- "right" : {
- "type" : "field",
- "value" : ["scalars", "fabric_metadata_t.pop_vlan_when_packet_in"]
- }
- }
- },
- "right" : {
- "type" : "bool",
- "value" : true
- }
- }
- }
- }
- },
- "true_next" : "tbl_pkt_io_egress_pop_vlan",
- "false_next" : "node_72"
- },
- {
- "name" : "node_72",
- "id" : 23,
- "source_info" : {
- "filename" : "include/control/packetio.p4",
- "line" : 52,
+ "line" : 44,
"column" : 16,
"source_fragment" : "fabric_metadata.is_multicast == true && ..."
},
@@ -7218,15 +6327,15 @@
}
}
},
- "true_next" : "tbl_drop_now_0",
- "false_next" : "tbl_act_29"
+ "true_next" : "tbl_act_19",
+ "false_next" : "tbl_act_20"
},
{
- "name" : "node_75",
- "id" : 24,
+ "name" : "node_59",
+ "id" : 20,
"source_info" : {
"filename" : "include/control/next.p4",
- "line" : 272,
+ "line" : 299,
"column" : 12,
"source_fragment" : "fabric_metadata.is_multicast == true ..."
},
@@ -7271,17 +6380,220 @@
}
}
},
- "true_next" : "tbl_drop_now_1",
+ "true_next" : "tbl_act_21",
+ "false_next" : "node_61"
+ },
+ {
+ "name" : "node_61",
+ "id" : 21,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 304,
+ "column" : 12,
+ "source_fragment" : "fabric_metadata.mpls_label == 0"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "==",
+ "left" : {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.mpls_label"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0x000000"
+ }
+ }
+ },
+ "true_next" : "node_62",
+ "false_next" : "tbl_egress_next_set_mpls"
+ },
+ {
+ "name" : "node_62",
+ "id" : 22,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 305,
+ "column" : 16,
+ "source_fragment" : "hdr.mpls.isValid()"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["mpls", "$valid$"]
+ }
+ }
+ },
+ "true_next" : "tbl_egress_next_pop_mpls_if_present",
"false_next" : "FabricEgress.egress_next.egress_vlan"
},
{
- "name" : "node_78",
+ "name" : "node_68",
+ "id" : 23,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 310,
+ "column" : 12,
+ "source_fragment" : "!egress_vlan.apply().hit"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "not",
+ "left" : null,
+ "right" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["scalars", "egress_next_tmp"]
+ }
+ }
+ }
+ }
+ },
+ "true_next" : "node_69",
+ "false_next" : "node_71"
+ },
+ {
+ "name" : "node_69",
+ "id" : 24,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 312,
+ "column" : 16,
+ "source_fragment" : "fabric_metadata.vlan_id != DEFAULT_VLAN_ID"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "!=",
+ "left" : {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.vlan_id"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0x0ffe"
+ }
+ }
+ },
+ "true_next" : "tbl_egress_next_push_vlan",
+ "false_next" : "node_71"
+ },
+ {
+ "name" : "node_71",
"id" : 25,
"source_info" : {
- "filename" : "include/spgw.p4",
- "line" : 221,
+ "filename" : "include/control/next.p4",
+ "line" : 318,
"column" : 12,
- "source_fragment" : "spgw_meta.direction == SPGW_DIR_DOWNLINK"
+ "source_fragment" : "hdr.mpls.isValid()"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["mpls", "$valid$"]
+ }
+ }
+ },
+ "true_next" : "tbl_act_24",
+ "false_next" : "node_75"
+ },
+ {
+ "name" : "node_73",
+ "id" : 26,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 320,
+ "column" : 16,
+ "source_fragment" : "hdr.mpls.ttl == 0"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "==",
+ "left" : {
+ "type" : "field",
+ "value" : ["mpls", "ttl"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0x00"
+ }
+ }
+ },
+ "true_next" : "tbl_act_25",
+ "false_next" : "node_79"
+ },
+ {
+ "name" : "node_75",
+ "id" : 27,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 322,
+ "column" : 15,
+ "source_fragment" : "hdr.ipv4.isValid()"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["ipv4", "$valid$"]
+ }
+ }
+ },
+ "true_next" : "tbl_act_26",
+ "false_next" : "node_79"
+ },
+ {
+ "name" : "node_77",
+ "id" : 28,
+ "source_info" : {
+ "filename" : "include/control/next.p4",
+ "line" : 324,
+ "column" : 20,
+ "source_fragment" : "hdr.ipv4.ttl == 0"
+ },
+ "expression" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "==",
+ "left" : {
+ "type" : "field",
+ "value" : ["ipv4", "ttl"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0x00"
+ }
+ }
+ },
+ "true_next" : "tbl_act_27",
+ "false_next" : "node_79"
+ },
+ {
+ "name" : "node_79",
+ "id" : 29,
+ "source_info" : {
+ "filename" : "include/spgw.p4",
+ "line" : 226,
+ "column" : 12,
+ "source_fragment" : "fabric_meta.spgw.direction == SPGW_DIR_DOWNLINK"
},
"expression" : {
"type" : "expression",
@@ -7333,7 +6645,7 @@
"id" : 1,
"source_info" : {
"filename" : "include/spgw.p4",
- "line" : 237,
+ "line" : 242,
"column" : 8,
"source_fragment" : "update_checksum(gtpu_ipv4.isValid(), ..."
},