Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/pna-demo-L2-two-tables.p4
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ control MainControlImpl(
drop_packet();
}
action L2_send_to_port (PortId_t port_id) {
send_to_port(port_id);
ostd.egress_port = port_id;
}

// In this demo program, I have chosen to use the same action
Expand Down
4 changes: 1 addition & 3 deletions pna.p4
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ struct pna_main_output_metadata_t {
// common fields used by the architecture to decide what to do with
// the packet next, after the main parser, control, and deparser
// have finished executing one pass, regardless of the direction.
PortId_t egress_port;
ClassOfService_t class_of_service; // 0
}
// END:Metadata_main_output
Expand All @@ -636,7 +637,6 @@ struct pna_main_output_metadata_t {
// actually take effect for the packet.

// + drop_packet
// + send_to_port


// drop_packet() - Cause the packet to be dropped when it finishes
Expand All @@ -646,8 +646,6 @@ struct pna_main_output_metadata_t {

extern void drop_packet();

extern void send_to_port(PortId_t dest_port);

extern void mirror_packet(MirrorSlotId_t mirror_slot_id,
MirrorSessionId_t mirror_session_id);

Expand Down