Skip to content

Commit

Permalink
Disable p4runtime translation annotations.
Browse files Browse the repository at this point in the history
Signed-off-by: fruffy <[email protected]>
  • Loading branch information
fruffy committed Jul 15, 2024
1 parent 32d537c commit 7c3e3ec
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 24 deletions.
24 changes: 16 additions & 8 deletions testdata/p4_16_samples/pins/pins_fabric.p4
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,23 @@ enum bit<8> PreservedFieldList {
RECIRCULATE = 8w2
}

@p4runtime_translation("" , string) type bit<10> nexthop_id_t;
@p4runtime_translation("" , string) type bit<10> tunnel_id_t;
@p4runtime_translation("" , string) type bit<12> wcmp_group_id_t;
@p4runtime_translation("" , string) @p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
// @p4runtime_translation("" , string)
type bit<10> nexthop_id_t;
// @p4runtime_translation("" , string)
type bit<10> tunnel_id_t;
// @p4runtime_translation("" , string)
type bit<12> wcmp_group_id_t;
// @p4runtime_translation("" , string)
@p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
const vrf_id_t kDefaultVrf = 0;
@p4runtime_translation("" , string) type bit<10> router_interface_id_t;
@p4runtime_translation("" , string) type bit<9> port_id_t;
@p4runtime_translation("" , string) type bit<10> mirror_session_id_t;
@p4runtime_translation("" , string) type bit<8> qos_queue_t;
// @p4runtime_translation("" , string)
type bit<10> router_interface_id_t;
// @p4runtime_translation("" , string)
type bit<9> port_id_t;
// @p4runtime_translation("" , string)
type bit<10> mirror_session_id_t;
// @p4runtime_translation("" , string)
type bit<8> qos_queue_t;
typedef bit<6> route_metadata_t;
typedef bit<8> acl_metadata_t;
typedef bit<16> multicast_group_id_t;
Expand Down
24 changes: 16 additions & 8 deletions testdata/p4_16_samples/pins/pins_middleblock.p4
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,23 @@ enum bit<8> PreservedFieldList {
RECIRCULATE = 8w2
}

@p4runtime_translation("" , string) type bit<10> nexthop_id_t;
@p4runtime_translation("" , string) type bit<10> tunnel_id_t;
@p4runtime_translation("" , string) type bit<12> wcmp_group_id_t;
@p4runtime_translation("" , string) @p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
// @p4runtime_translation("" , string)
type bit<10> nexthop_id_t;
// @p4runtime_translation("" , string)
type bit<10> tunnel_id_t;
// @p4runtime_translation("" , string)
type bit<12> wcmp_group_id_t;
// @p4runtime_translation("" , string)
@p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
const vrf_id_t kDefaultVrf = 0;
@p4runtime_translation("" , string) type bit<10> router_interface_id_t;
@p4runtime_translation("" , string) type bit<9> port_id_t;
@p4runtime_translation("" , string) type bit<10> mirror_session_id_t;
@p4runtime_translation("" , string) type bit<8> qos_queue_t;
// @p4runtime_translation("" , string)
type bit<10> router_interface_id_t;
// @p4runtime_translation("" , string)
type bit<9> port_id_t;
// @p4runtime_translation("" , string)
type bit<10> mirror_session_id_t;
// @p4runtime_translation("" , string)
type bit<8> qos_queue_t;
typedef bit<6> route_metadata_t;
typedef bit<8> acl_metadata_t;
typedef bit<16> multicast_group_id_t;
Expand Down
24 changes: 16 additions & 8 deletions testdata/p4_16_samples/pins/pins_wbb.p4
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,23 @@ enum bit<8> PreservedFieldList {
RECIRCULATE = 8w2
}

@p4runtime_translation("" , string) type bit<10> nexthop_id_t;
@p4runtime_translation("" , string) type bit<10> tunnel_id_t;
@p4runtime_translation("" , string) type bit<12> wcmp_group_id_t;
@p4runtime_translation("" , string) @p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
// @p4runtime_translation("" , string)
type bit<10> nexthop_id_t;
// @p4runtime_translation("" , string)
type bit<10> tunnel_id_t;
// @p4runtime_translation("" , string)
type bit<12> wcmp_group_id_t;
// @p4runtime_translation("" , string)
@p4runtime_translation_mappings({ { "" , 0 } , }) type bit<10> vrf_id_t;
const vrf_id_t kDefaultVrf = 0;
@p4runtime_translation("" , string) type bit<10> router_interface_id_t;
@p4runtime_translation("" , string) type bit<9> port_id_t;
@p4runtime_translation("" , string) type bit<10> mirror_session_id_t;
@p4runtime_translation("" , string) type bit<8> qos_queue_t;
// @p4runtime_translation("" , string)
type bit<10> router_interface_id_t;
// @p4runtime_translation("" , string)
type bit<9> port_id_t;
// @p4runtime_translation("" , string)
type bit<10> mirror_session_id_t;
// @p4runtime_translation("" , string)
type bit<8> qos_queue_t;
typedef bit<6> route_metadata_t;
typedef bit<8> acl_metadata_t;
typedef bit<16> multicast_group_id_t;
Expand Down

0 comments on commit 7c3e3ec

Please sign in to comment.