[P4-dev] what is "action_calls" in P4Objects::init_pipelines?

Hardik Soni hardik.soni at inria.fr
Mon Aug 14 17:23:13 EDT 2017


thanks for the reply... 

-Hardik 

----- Original Message -----

> From: "Antonin Bas" <antonin at barefootnetworks.com>
> To: "Hardik Soni" <hardik.soni at inria.fr>
> Cc: "p4-dev" <p4-dev at lists.p4.org>
> Sent: Monday, 14 August, 2017 8:58:38 PM
> Subject: Re: [P4-dev] what is "action_calls" in P4Objects::init_pipelines?

> I believe this is documented in the bmv2 JSON format specification:
> https://github.com/p4lang/behavioral-model/blob/master/docs/JSON_format.md

> - `action_calls`: a JSON array of JSON objects. It is used for direct action
> calls from a control flow which are not wrapped into a table
> ...

> Unlike P4_14, P4_16 allows the programmer to call actions directly from the
> control flow (as opposed to only tables). In the past, the only way for a
> compiler to generate bmv2 JSON for this was to synthesize an empty table,
> configure the default action to be the action you are calling from the
> control flow and replace the action call by a table apply. This would
> clutter the JSON and make debugging harder. This kind of transformation is
> no longer needed with recent bmv2 versions.

> On Sat, Aug 12, 2017 at 8:08 AM, Hardik Soni < hardik.soni at inria.fr > wrote:

> > Hello,
> 

> > What does "action_calls" tag in json format represent according to P4
> > language of this spec?
> 

> > Best Regards,
> 
> > Hardik Soni
> 

> > _______________________________________________
> 
> > P4-dev mailing list
> 
> > P4-dev at lists.p4.org
> 
> > http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
> 

> --
> Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170814/9d51a284/attachment-0002.html>


More information about the P4-dev mailing list