Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Budiu committed Nov 2, 2021
1 parent 1639249 commit 29d8125
Show file tree
Hide file tree
Showing 78 changed files with 178 additions and 178 deletions.
2 changes: 1 addition & 1 deletion testdata/p4_14_samples_outputs/copy_to_cpu-first.p4
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t

control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_t standard_metadata) {
@name(".do_copy_to_cpu") action do_copy_to_cpu() {
clone3(CloneType.I2E, 32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
clone3_field_list(CloneType.I2E, 32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
}
@name(".copy_to_cpu") table copy_to_cpu {
actions = {
Expand Down
2 changes: 1 addition & 1 deletion testdata/p4_14_samples_outputs/copy_to_cpu-frontend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
@noWarn("unused") @name(".NoAction") action NoAction_3() {
}
@name(".do_copy_to_cpu") action do_copy_to_cpu() {
clone3(CloneType.I2E, 32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
clone3_field_list(CloneType.I2E, 32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
}
@name(".copy_to_cpu") table copy_to_cpu_0 {
actions = {
Expand Down
2 changes: 1 addition & 1 deletion testdata/p4_14_samples_outputs/copy_to_cpu-midend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
@noWarn("unused") @name(".NoAction") action NoAction_3() {
}
@name(".do_copy_to_cpu") action do_copy_to_cpu() {
clone3(CloneType.I2E, 32w250, 8w0);
clone3_field_list(CloneType.I2E, 32w250, 8w0);
}
@name(".copy_to_cpu") table copy_to_cpu_0 {
actions = {
Expand Down
2 changes: 1 addition & 1 deletion testdata/p4_14_samples_outputs/copy_to_cpu.p4
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t

control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_t standard_metadata) {
@name(".do_copy_to_cpu") action do_copy_to_cpu() {
clone3(CloneType.I2E, (bit<32>)32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
clone3_field_list(CloneType.I2E, (bit<32>)32w250, (bit<8>)FieldLists.copy_to_cpu_fields);
}
@name(".copy_to_cpu") table copy_to_cpu {
actions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -229,7 +229,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -258,7 +258,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop_3() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta._mymeta_f14 = meta._mymeta_f14 + 8w23;
meta._mymeta_clone_e2e_count2 = meta._mymeta_clone_e2e_count2 + 8w1;
clone3(CloneType.E2E, 32w1, 8w0);
clone3_field_list(CloneType.E2E, 32w1, 8w0);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta._mymeta_f14 = meta._mymeta_f14 + 8w19;
meta._mymeta_recirculate_count1 = meta._mymeta_recirculate_count1 + 8w1;
recirculate(8w1);
recirculate_field_list(8w1);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -259,7 +259,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta._mymeta_f14 = meta._mymeta_f14 + 8w17;
meta._mymeta_resubmit_count0 = meta._mymeta_resubmit_count0 + 8w1;
resubmit(8w2);
resubmit_field_list(8w2);
}
@name("._nop") action _nop_3() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops-2-bmv2.p4
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w23;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w19;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -233,7 +233,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w17;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -241,7 +241,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -270,7 +270,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop_3() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta._mymeta_f14 = meta._mymeta_f14 + 8w23;
meta._mymeta_clone_e2e_count2 = meta._mymeta_clone_e2e_count2 + 8w1;
clone3(CloneType.E2E, 32w1, 8w0);
clone3_field_list(CloneType.E2E, 32w1, 8w0);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta._mymeta_f14 = meta._mymeta_f14 + 8w19;
meta._mymeta_recirculate_count1 = meta._mymeta_recirculate_count1 + 8w1;
recirculate(8w1);
recirculate_field_list(8w1);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -270,7 +270,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta._mymeta_f14 = meta._mymeta_f14 + 8w17;
meta._mymeta_resubmit_count0 = meta._mymeta_resubmit_count0 + 8w1;
resubmit(8w2);
resubmit_field_list(8w2);
}
@name("._nop") action _nop_3() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops-3-bmv2.p4
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w23;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w19;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -245,7 +245,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w17;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops-first.p4
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -228,7 +228,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops-frontend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, 32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -257,7 +257,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop_3() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops-midend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710633;
meta._mymeta_f14 = meta._mymeta_f14 + 8w23;
meta._mymeta_clone_e2e_count2 = meta._mymeta_clone_e2e_count2 + 8w1;
clone3(CloneType.E2E, 32w1, 8w0);
clone3_field_list(CloneType.E2E, 32w1, 8w0);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710637;
meta._mymeta_f14 = meta._mymeta_f14 + 8w19;
meta._mymeta_recirculate_count1 = meta._mymeta_recirculate_count1 + 8w1;
recirculate(8w1);
recirculate_field_list(8w1);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -257,7 +257,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr + 48w281474976710639;
meta._mymeta_f14 = meta._mymeta_f14 + 8w17;
meta._mymeta_resubmit_count0 = meta._mymeta_resubmit_count0 + 8w1;
resubmit(8w2);
resubmit_field_list(8w2);
}
@name("._nop") action _nop_3() {
}
Expand Down
6 changes: 3 additions & 3 deletions testdata/p4_14_samples_outputs/p414-special-ops.p4
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w23;
meta.mymeta.f1 = meta.mymeta.f1 + 8w23;
meta.mymeta.clone_e2e_count = meta.mymeta.clone_e2e_count + 8w1;
clone3(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
clone3_field_list(CloneType.E2E, (bit<32>)32w1, (bit<8>)FieldLists.clone_e2e_FL);
}
@name(".do_recirculate") action do_recirculate() {
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w19;
meta.mymeta.f1 = meta.mymeta.f1 + 8w19;
meta.mymeta.recirculate_count = meta.mymeta.recirculate_count + 8w1;
recirculate((bit<8>)FieldLists.recirculate_FL);
recirculate_field_list((bit<8>)FieldLists.recirculate_FL);
}
@name("._nop") action _nop() {
}
Expand Down Expand Up @@ -232,7 +232,7 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
hdr.ethernet.srcAddr = hdr.ethernet.srcAddr - 48w17;
meta.mymeta.f1 = meta.mymeta.f1 + 8w17;
meta.mymeta.resubmit_count = meta.mymeta.resubmit_count + 8w1;
resubmit((bit<8>)FieldLists.resubmit_FL);
resubmit_field_list((bit<8>)FieldLists.resubmit_FL);
}
@name("._nop") action _nop() {
}
Expand Down
8 changes: 4 additions & 4 deletions testdata/p4_14_samples_outputs/packet_redirect-first.p4
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
@name("._nop") action _nop() {
}
@name("._recirculate") action _recirculate() {
recirculate((bit<8>)FieldLists.redirect_FL);
recirculate_field_list((bit<8>)FieldLists.redirect_FL);
}
@name("._clone_e2e") action _clone_e2e(bit<32> mirror_id) {
clone3(CloneType.E2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
clone3_field_list(CloneType.E2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
}
@name(".t_egress") table t_egress {
actions = {
Expand Down Expand Up @@ -87,10 +87,10 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
standard_metadata.mcast_grp = mgrp;
}
@name("._resubmit") action _resubmit() {
resubmit((bit<8>)FieldLists.redirect_FL);
resubmit_field_list((bit<8>)FieldLists.redirect_FL);
}
@name("._clone_i2e") action _clone_i2e(bit<32> mirror_id) {
clone3(CloneType.I2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
clone3_field_list(CloneType.I2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
}
@name(".t_ingress_1") table t_ingress_1 {
actions = {
Expand Down
8 changes: 4 additions & 4 deletions testdata/p4_14_samples_outputs/packet_redirect-frontend.p4
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ control egress(inout headers hdr, inout metadata meta, inout standard_metadata_t
@name("._nop") action _nop() {
}
@name("._recirculate") action _recirculate() {
recirculate((bit<8>)FieldLists.redirect_FL);
recirculate_field_list((bit<8>)FieldLists.redirect_FL);
}
@name("._clone_e2e") action _clone_e2e(@name("mirror_id") bit<32> mirror_id) {
clone3(CloneType.E2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
clone3_field_list(CloneType.E2E, mirror_id, (bit<8>)FieldLists.redirect_FL);
}
@name(".t_egress") table t_egress_0 {
actions = {
Expand Down Expand Up @@ -95,10 +95,10 @@ control ingress(inout headers hdr, inout metadata meta, inout standard_metadata_
standard_metadata.mcast_grp = mgrp;
}
@name("._resubmit") action _resubmit() {
resubmit((bit<8>)FieldLists.redirect_FL);
resubmit_field_list((bit<8>)FieldLists.redirect_FL);
}
@name("._clone_i2e") action _clone_i2e(@name("mirror_id") bit<32> mirror_id_2) {
clone3(CloneType.I2E, mirror_id_2, (bit<8>)FieldLists.redirect_FL);
clone3_field_list(CloneType.I2E, mirror_id_2, (bit<8>)FieldLists.redirect_FL);
}
@name(".t_ingress_1") table t_ingress {
actions = {
Expand Down
Loading

0 comments on commit 29d8125

Please sign in to comment.