From 72e989594b613c457171fd0e31d829b8d358a99c 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 ++-- build/networking/scripts/distro_pkg_install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 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 { diff --git a/build/networking/scripts/distro_pkg_install.sh b/build/networking/scripts/distro_pkg_install.sh index 73651600..f7da5d50 100755 --- a/build/networking/scripts/distro_pkg_install.sh +++ b/build/networking/scripts/distro_pkg_install.sh @@ -195,9 +195,9 @@ ubuntu_install_build_pkgs() { pyelftools \ scapy \ six \ - cmake>=3.15.0 \ + "cmake>=3.15.0" \ meson==0.59.4 \ - ninja>=1.8.2 + "ninja>=1.8.2" # Cleanup apt-get -y clean all