Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deny action from direction lookup #238

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions dash-pipeline/bmv2/dash_pipeline.p4
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ control dash_ingress(inout headers_t hdr,
meta.direction = direction_t.OUTBOUND;
}

action set_inbound_direction() {
meta.direction = direction_t.INBOUND;
}

@name("direction_lookup|dash_direction_lookup")
table direction_lookup {
key = {
Expand All @@ -61,8 +65,10 @@ control dash_ingress(inout headers_t hdr,

actions = {
set_outbound_direction;
deny;
@defaultonly set_inbound_direction;
}

const default_action = set_inbound_direction;
}

action set_appliance(EthernetAddress neighbor_mac,
Expand Down Expand Up @@ -248,7 +254,6 @@ control dash_ingress(inout headers_t hdr,
}

/* If Outer VNI matches with a reserved VNI, then the direction is Outbound - */
meta.direction = direction_t.INBOUND;
direction_lookup.apply();

appliance.apply();
Expand Down