Skip to content

Commit

Permalink
Update simple_l3 P4 program actions to use PSA pre-defined actions
Browse files Browse the repository at this point in the history
Modified simple_l3 P4 program to use the PSA pre-defined
send_to_port and ingress_drop actions instead of updating
the psa_ingress_output_metadata_t structure directly.

Signed-off-by: Venkata Suresh Kumar P <[email protected]>
  • Loading branch information
vsureshkumarp committed Dec 5, 2022
1 parent c326abe commit a307377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/networking/examples/simple_l3/simple_l3.p4
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ control ingress(
)
{
action send(PortId_t port) {
ostd.egress_port = (PortId_t) port;
send_to_port(ostd, port);
}

action drop() {
ostd.drop = true;
ingress_drop(ostd);
}

table ipv4_host {
Expand Down

0 comments on commit a307377

Please sign in to comment.