mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-11-01 16:51:28 +01:00
Also checked in p4c compilation result (BMv2 JSON and p4info) Change-Id: If1d2426e6ff275c01f63b3e300acd2b48197aa99
31 lines
613 B
Plaintext
31 lines
613 B
Plaintext
#include "include/defines.p4"
|
|
#include "include/headers.p4"
|
|
#include "include/parser.p4"
|
|
#include "include/actions.p4"
|
|
#include "include/port_counters.p4"
|
|
|
|
table table0 {
|
|
reads {
|
|
standard_metadata.ingress_port : ternary;
|
|
ethernet.dstAddr : ternary;
|
|
ethernet.srcAddr : ternary;
|
|
ethernet.etherType : ternary;
|
|
}
|
|
actions {
|
|
set_egress_port;
|
|
send_to_cpu;
|
|
drop;
|
|
}
|
|
support_timeout: true;
|
|
}
|
|
|
|
counter table0_counter {
|
|
type: packets;
|
|
direct: table0;
|
|
min_width : 32;
|
|
}
|
|
|
|
control ingress {
|
|
apply(table0);
|
|
process_port_counters();
|
|
} |