Bridged packets should retain the same TTL
Change-Id: Ia685002cddffd9aeac1f43147efc8b68e4b26f16
diff --git a/pipelines/fabric/impl/src/main/resources/p4c-out/fabric/bmv2/default/bmv2.json b/pipelines/fabric/impl/src/main/resources/p4c-out/fabric/bmv2/default/bmv2.json
index 01c4571..972af8e 100644
--- a/pipelines/fabric/impl/src/main/resources/p4c-out/fabric/bmv2/default/bmv2.json
+++ b/pipelines/fabric/impl/src/main/resources/p4c-out/fabric/bmv2/default/bmv2.json
@@ -4424,16 +4424,36 @@
"filename" : "include/control/next.p4",
"line" : 372,
"column" : 15,
- "source_fragment" : "hdr.ipv4.isValid()"
+ "source_fragment" : "hdr.ipv4.isValid() && fabric_metadata.fwd_type != FWD_BRIDGING"
},
"expression" : {
"type" : "expression",
"value" : {
- "op" : "d2b",
- "left" : null,
+ "op" : "and",
+ "left" : {
+ "type" : "expression",
+ "value" : {
+ "op" : "d2b",
+ "left" : null,
+ "right" : {
+ "type" : "field",
+ "value" : ["ipv4", "$valid$"]
+ }
+ }
+ },
"right" : {
- "type" : "field",
- "value" : ["ipv4", "$valid$"]
+ "type" : "expression",
+ "value" : {
+ "op" : "!=",
+ "left" : {
+ "type" : "field",
+ "value" : ["scalars", "fabric_metadata_t.fwd_type"]
+ },
+ "right" : {
+ "type" : "hexstr",
+ "value" : "0x00"
+ }
+ }
}
}
},