Begin from the beginning: reset to port1 only

This commit is contained in:
Nico Schottelius 2019-07-23 10:20:18 +02:00
commit 1059e8d0e0
6 changed files with 99 additions and 10 deletions

View file

@ -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) {

View file

@ -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 {

View file

@ -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();
}

View file

@ -1 +1 @@
minip4_solution-nat64.p4
minip4_solution-mirror.p4