commit | 1b154bd81cca81e6eabd588aaa2130aece90c668 | [log] [tgz] |
---|---|---|
author | Yi Tseng <yi@opennetworking.org> | Mon Nov 20 17:48:19 2017 -0800 |
committer | Carmelo Cascone <carmelo@opennetworking.org> | Mon Nov 27 22:55:51 2017 +0000 |
tree | 2f228fc90449b10714e0ca7f2b8a01f7e72cdd99 | |
parent | 653e2ac0af1d51344abde9c2954f77fe705bd151 [diff] [blame] |
[ONOS-7242] Support MPLS by fabric.p4 pipeliner Change-Id: I56a8f266e6d0afe5ad6737b8d0e399758fb75378
diff --git a/pipelines/fabric/src/main/resources/include/define.p4 b/pipelines/fabric/src/main/resources/include/define.p4 index 9ba84e9..1db958f 100644 --- a/pipelines/fabric/src/main/resources/include/define.p4 +++ b/pipelines/fabric/src/main/resources/include/define.p4
@@ -20,7 +20,7 @@ #define MAX_PORTS 511 typedef bit<3> fwd_type_t; -typedef bit<32> next_id_t; +typedef bit<32> next_id_t; typedef bit<3> next_type_t; typedef bit<20> mpls_label_t; typedef bit<9> port_num_t; @@ -60,4 +60,6 @@ const next_type_t NEXT_TYPE_BROADCAST = 2; const next_type_t NEXT_TYPE_PUNT = 3; +const bit<8> DEFAULT_MPLS_TTL = 64; + #endif