Skip to content

Commit 72e9895

Browse files
committed
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 <[email protected]>
1 parent c326abe commit 72e9895

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/networking/examples/simple_l3/simple_l3.p4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ control ingress(
112112
)
113113
{
114114
action send(PortId_t port) {
115-
ostd.egress_port = (PortId_t) port;
115+
send_to_port(ostd, port);
116116
}
117117

118118
action drop() {
119-
ostd.drop = true;
119+
ingress_drop(ostd);
120120
}
121121

122122
table ipv4_host {

build/networking/scripts/distro_pkg_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ ubuntu_install_build_pkgs() {
195195
pyelftools \
196196
scapy \
197197
six \
198-
cmake>=3.15.0 \
198+
"cmake>=3.15.0" \
199199
meson==0.59.4 \
200-
ninja>=1.8.2
200+
"ninja>=1.8.2"
201201

202202
# Cleanup
203203
apt-get -y clean all

0 commit comments

Comments
 (0)