Begin from the beginning: reset to port1 only
This commit is contained in:
parent
5f4930ae43
commit
1059e8d0e0
6 changed files with 99 additions and 10 deletions
|
|
@ -28,7 +28,8 @@ control MyDeparser(packet_out packet, in headers hdr) {
|
|||
************** I N G R E S S P R O C E S S I N G *******************
|
||||
*************************************************************************/
|
||||
|
||||
control MyIngress(inout headers hdr,
|
||||
control MyIngress(
|
||||
inout headers hdr,
|
||||
inout metadata meta,
|
||||
inout standard_metadata_t standard_metadata) {
|
||||
|
||||
|
|
|
|||
|
|
@ -98,8 +98,8 @@ control TopPipe(inout Parsed_packet p,
|
|||
}
|
||||
size = 64;
|
||||
// default_action = swap_eth_addresses; // test_mirror(): in gen_testdata.py
|
||||
// default_action = send_to_port1; // test_port1()
|
||||
default_action = send_to_all_ports; // test_allports():
|
||||
default_action = send_to_port1; // test_port1()
|
||||
// default_action = send_to_all_ports; // test_allports():
|
||||
}
|
||||
|
||||
apply {
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ parser TopParser(packet_in packet,
|
|||
inout sume_metadata_t standard_metadata) {
|
||||
|
||||
#include "parsers.p4"
|
||||
digest_data.unused = 0; /* avoid compiler warning */
|
||||
}
|
||||
|
||||
/********************************************************************************
|
||||
|
|
@ -65,6 +66,8 @@ control TopPipe(inout headers hdr,
|
|||
|
||||
#include "netpfga.p4"
|
||||
|
||||
|
||||
|
||||
apply {
|
||||
dummy_table_for_netpfga.apply();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
minip4_solution-nat64.p4
|
||||
minip4_solution-mirror.p4
|
||||
Loading…
Add table
Add a link
Reference in a new issue