INT transit for tofino (only with spgw enabled)

Because of recent update in p4c that uses different names for
P4 entities, requires manual search/replace in p4info/context.json

Change-Id: If7d6ea738710ef0c8786d9ff07f21f240fb6cedc
diff --git a/pipelines/fabric/src/main/resources/fabric.p4 b/pipelines/fabric/src/main/resources/fabric.p4
index 8205196..610975c 100644
--- a/pipelines/fabric/src/main/resources/fabric.p4
+++ b/pipelines/fabric/src/main/resources/fabric.p4
@@ -30,6 +30,10 @@
 #include "include/spgw.p4"
 #endif // WITH_SPGW
 
+#ifdef WITH_INT_TRANSIT
+#include "include/int_transit.p4"
+#endif // WITH_INT_TRANSIT
+
 control FabricIngress (
 inout parsed_headers_t hdr,
 inout fabric_metadata_t fabric_metadata,
@@ -65,6 +69,11 @@
     PacketIoEgress() pkt_io_egress;
     apply {
         pkt_io_egress.apply(hdr, fabric_metadata, standard_metadata);
+#ifdef WITH_INT_TRANSIT
+        int_egress.apply(hdr, fabric_metadata.int_metadata, standard_metadata);
+#endif // WITH_INT_TRANSIT
+        // gtpu encap needs to happen after INT to ensure length fields are set
+        // correctly
 #ifdef WITH_SPGW
         spgw_egress.apply(hdr.ipv4, hdr.gtpu_ipv4, hdr.gtpu_udp, hdr.gtpu,
                           fabric_metadata.spgw, standard_metadata);