Skip to content

Commit

Permalink
updated output
Browse files Browse the repository at this point in the history
  • Loading branch information
mbudiu-vmw committed Jan 12, 2017
1 parent 5a2c6c8 commit a2bced3
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions testdata/p4_16_samples_outputs/action_profile-bmv2-midend.p4
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#include <core.p4>
#include <v1model.p4>

struct H {
}

struct M {
bit<32> hash1;
}

parser ParserI(packet_in pk, out H hdr, inout M meta, inout standard_metadata_t smeta) {
state start {
transition accept;
}
}

control IngressI(inout H hdr, inout M meta, inout standard_metadata_t smeta) {
@name("NoAction_1") action NoAction_0() {
}
@name("NoAction_2") action NoAction_3() {
}
@name("drop") action drop_0() {
smeta.drop = 1w1;
}
@name("drop") action drop_3() {
smeta.drop = 1w1;
}
@name("indirect") table indirect() {
key = {
}
actions = {
drop_0();
NoAction_0();
}
const default_action = NoAction_0();
@name("ap") implementation = action_profile(32w128);
}
@name("indirect_ws") table indirect_ws() {
key = {
meta.hash1: selector;
}
actions = {
drop_3();
NoAction_3();
}
const default_action = NoAction_3();
@name("ap_ws") implementation = action_selector(HashAlgorithm.identity, 32w1024, 32w10);
}
apply {
indirect.apply();
indirect_ws.apply();
}
}

control EgressI(inout H hdr, inout M meta, inout standard_metadata_t smeta) {
apply {
}
}

control DeparserI(packet_out pk, in H hdr) {
apply {
}
}

control VerifyChecksumI(in H hdr, inout M meta) {
apply {
}
}

control ComputeChecksumI(inout H hdr, inout M meta) {
apply {
}
}

V1Switch<H, M>(ParserI(), VerifyChecksumI(), IngressI(), EgressI(), ComputeChecksumI(), DeparserI()) main;

0 comments on commit a2bced3

Please sign in to comment.