[P4-dev] resubmit in bmv2

Roshan sedar at oasis.uclouvain.be
Thu Nov 2 20:17:04 EDT 2017


Clear.

Thanks Antonin.


On 2017-11-02 19:38, Antonin Bas wrote:
> 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 
> https://github.com/p4lang/behavioral-model/blob/master/targets/simple_switch/simple_switch.h#L124) 
> 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 
> <mailto: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 <mailto:P4-dev at lists.p4.org>
>     http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>     <http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org>
>
>
>
>
> -- 
> Antonin
>
>
> _______________________________________________
> 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/20171103/b1710d27/attachment-0002.html>


More information about the P4-dev mailing list