Skip to content

Commit a307377

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 a307377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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 {

0 commit comments

Comments
 (0)