From a307377668366f1c691890ff5cca5d7f1e4ad731 Mon Sep 17 00:00:00 2001 From: Venkata Suresh Kumar P Date: Mon, 5 Dec 2022 06:07:26 +0000 Subject: [PATCH] Update simple_l3 P4 program actions to use PSA pre-defined actions 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 --- build/networking/examples/simple_l3/simple_l3.p4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/networking/examples/simple_l3/simple_l3.p4 b/build/networking/examples/simple_l3/simple_l3.p4 index 48c7c55f..b5463d82 100644 --- a/build/networking/examples/simple_l3/simple_l3.p4 +++ b/build/networking/examples/simple_l3/simple_l3.p4 @@ -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 {