2019-07-10 20:47:52 +00:00
|
|
|
#ifndef DUMMY_NETPFGA
|
|
|
|
#define DUMMY_NETPFGA
|
|
|
|
|
2019-07-17 15:41:54 +00:00
|
|
|
action send_to_port1() {
|
2019-07-29 00:00:13 +00:00
|
|
|
// sume_metadata.dst_port = 1;
|
|
|
|
sume_metadata.dst_port = 16;
|
2019-07-17 15:41:54 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 20:47:52 +00:00
|
|
|
table dummy_table_for_netpfga {
|
|
|
|
key = {
|
|
|
|
hdr.ethernet.dst_addr: exact;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions = {
|
|
|
|
send_to_port1;
|
|
|
|
}
|
2019-07-28 18:08:28 +00:00
|
|
|
size = 64;
|
2019-07-17 15:24:34 +00:00
|
|
|
default_action = send_to_port1;
|
2019-07-10 20:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|