Skip to content

Commit

Permalink
Update outbound_routing.p4
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-pritsak authored Jun 3, 2024
1 parent c4c0f93 commit 0ecf3fc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions dash-pipeline/bmv2/stages/outbound_routing.p4
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ control outbound_routing_stage(inout headers_t hdr,
return;
}

routing_group.apply();
if (meta.eni_data.routing_group_data.routing_group_admin_state) {
if (!routing.apply().hit) {
UPDATE_ENI_COUNTER(outbound_routing_entry_miss_drop);
}
} else {
if (!routing_group.apply().hit) {
drop(meta);
return;
}

if (!meta.eni_data.routing_group_data.routing_group_admin_state) {
drop(meta);
return;
}

if (!routing.apply().hit) {
UPDATE_ENI_COUNTER(outbound_routing_entry_miss_drop);
}
}

Expand Down

0 comments on commit 0ecf3fc

Please sign in to comment.