25 lines
355 B
Text
25 lines
355 B
Text
|
#ifndef DUMMY_NETPFGA
|
||
|
#define DUMMY_NETPFGA
|
||
|
|
||
|
action do_nothing() {
|
||
|
|
||
|
}
|
||
|
action send_to_port1() {
|
||
|
sume_metadata.dst_port = 1;
|
||
|
}
|
||
|
|
||
|
table dummy_table_for_netpfga {
|
||
|
key = {
|
||
|
hdr.ethernet.dst_addr: exact;
|
||
|
}
|
||
|
|
||
|
actions = {
|
||
|
do_nothing;
|
||
|
send_to_port1;
|
||
|
}
|
||
|
size = TEST_TABLE_SIZE;
|
||
|
default_action = do_nothing;
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|