[P4-dev] Help regarding implementing a counter in P4_16

Rakesh Datta rakesh.datta6 at gmail.com
Tue Jun 13 02:09:26 EDT 2017


Hello All,

I am trying to design a counter similar to the one mentioned in
https://github.com/p4lang/tutorials/blob/master/SIGCOMM_2016/heavy_hitter/counter_example/heavy_hitter.p4

I am running the compiled P4 code on top of bmv2. However, I am getting an
error saying, 'Unknown primitive action: count'.
Most likely, the counters are designed in a different way (extern) in P4_16.

Can somebody please guide me how to code a counter in P4_16.

Thanks 'n' Regards,
Rakesh Datta

http://www.linkedin.com/in/rakeshdatta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170612/10f4f605/attachment-0002.html>


More information about the P4-dev mailing list