[P4-dev] resubmit in bmv2

Antonin Bas antonin at barefootnetworks.com
Thu Nov 2 14:38:14 EDT 2017

If you keep resubmitting the packet over and over again you are going to
get an infinite loop. That's the definition of resubmit.
You need to check the value of standard_metadata.instance_type in the
ingress pipeline. If the packet has already been resubmitted (i.e. of the
value of this metadata field is 6, as per
you probably want to avoid calling resubmit again on this packet.

On Thu, Nov 2, 2017 at 5:17 AM, Roshan <sedar at oasis.uclouvain.be> wrote:

> Hi,
> When I add resubmit primitive in p4-bmv2 creates an infinite loop. What
> could be the reason for that?
> I have added switch intrinsic metadata also.
> Thanks!
> Roshan.
> _______________________________________________
> 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/20171102/72eee33d/attachment-0002.html>

More information about the P4-dev mailing list