[P4-design] Feeling the Need for a Return Instruction

Mihai Budiu mbudiu at barefootnetworks.com
Tue Aug 18 14:53:07 EDT 2015


The latest spec proposal introduces a "return" instruction for this purpose.

Mihai

On Tue, Aug 18, 2015 at 11:48 AM, Peter Newman (petenewm) <
petenewm at cisco.com> wrote:

> Do I have an exit instruction in the control flow? I couldn’t find one.
>
> I’d rather like to tell my multicast ingress control flow that I’m done
> with it. I’m only playing with a tiny example program so I guess in reality
> I’d mark a metadata bit and test for it later in the control flow.
>
> It seems a pity I can’t just tell it to go dump the packet in the buffer
> and exit.
>
> —Peter
>
>
> _______________________________________________
> P4-design mailing list
> P4-design at p4.org
> Listinfo - http://mail.p4.org/mailman/listinfo/p4-design_p4.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-design_lists.p4.org/attachments/20150818/37cb7e85/attachment-0001.html>


More information about the P4-design mailing list