Skip to content

Commit

Permalink
Fix the order of applying the routing actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Feb 27, 2024
1 parent f8ed559 commit dfc4750
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dash-pipeline/bmv2/stages/routing_action_apply.p4
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ control routing_action_apply(
inout metadata_t meta)
{
apply {
do_action_static_encap.apply(hdr, meta);
do_action_nat46.apply(hdr, meta);
do_action_nat64.apply(hdr, meta);

// Encaps needs to be added after all other transforms, from inner ones to outer ones,
// because it requires the transforms on the inner packet to be finished in order to
// get the correct inner packet size and other informations.
do_action_static_encap.apply(hdr, meta);
}
}

Expand Down

0 comments on commit dfc4750

Please sign in to comment.