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

Andy Fingerhut andy.fingerhut at gmail.com
Tue Jun 13 17:48:56 EDT 2017


I am not sure, but you may be hitting this known issue with the P4-16
compiler: https://github.com/p4lang/p4c/issues/461

Andy

On Mon, Jun 12, 2017 at 11:09 PM, Rakesh Datta <rakesh.datta6 at gmail.com>
wrote:

> 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
>
>
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170613/f004e11d/attachment-0002.html>


More information about the P4-dev mailing list