Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 1 | #ifndef METADATA |
2 | #define METADATA | ||||
3 | |||||
4 | struct ecmp_metadata_t { | ||||
Carmelo Cascone | 837e645 | 2017-07-19 20:35:22 -0400 | [diff] [blame] | 5 | bit<16> group_id; |
Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 6 | bit<16> selector; |
7 | } | ||||
8 | |||||
Carmelo Cascone | 837e645 | 2017-07-19 20:35:22 -0400 | [diff] [blame] | 9 | struct wcmp_metadata_t { |
10 | bit<16> group_id; | ||||
Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 11 | bit<8> numBits; |
12 | bit<64> selector; | ||||
13 | } | ||||
14 | |||||
Carmelo Cascone | 837e645 | 2017-07-19 20:35:22 -0400 | [diff] [blame] | 15 | struct metadata_t { |
Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 16 | ecmp_metadata_t ecmp_metadata; |
Carmelo Cascone | 837e645 | 2017-07-19 20:35:22 -0400 | [diff] [blame] | 17 | wcmp_metadata_t wcmp_meta; |
Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 18 | intrinsic_metadata_t intrinsic_metadata; |
19 | } | ||||
20 | #endif |