added a counter example

This commit is contained in:
Antonin Bas
2015-11-16 11:56:10 -08:00
parent e81db93021
commit 1809653107
7 changed files with 217 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ included:
- `TLV_parsing`: how to parse IPv4 options
- `register`: how to use registers in P4 and read / write the state from the
control plane
- `counter`: how to use counters in P4
All examples are orgranized the same way, with a `p4src` directory containing
the P4 source code, and a `README` file describing the P4 program and explaining