Comments (5)
Hello Ben,
In P4-16 deparsers are nothing more than control flows. So, yes, this is an
important concept and, usually, a standalone block from the switch
architecture perspective, but there are no specialized abstractions for
deparsers in P4-16, at least not currently. That's why deparsers were not
mentioned in Section 5, but they are mentioned in other places.
We had several discussions about this. The main point is that this is
simple imperative code, not different from any other control flow (unlike
parsers, where the control flow is expressed via state transitions instead
of "traditional" if() statements). The arguments to a deparser would
typically include a packet abstraction and the code is allowed to use
primitives, such as emit(), but one can argue that depending on the target
and architecture there is nothing special about that and these might be
allowed inside other control blocks.
Happy hacking,
Vladimir
On Mon, Aug 15, 2016 at 2:12 PM, Ben Pfaff [email protected] wrote:
The P4-16 draft spec, section 5, lists the core abstractions of P4. I
suggest that it should mention deparsers.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#31, or mute the thread
https://github.com/notifications/unsubscribe-auth/AMPb84AAUSzIUbd5ezsDuzbsiFWSEM1fks5qgNZUgaJpZM4Jkxs9
.
from p4-spec.
I see.
It seems that adding a sentence to the definition of "Control flow" would be helpful to readers. For example, "Some targets support deparser control flow blocks that reassemble packets following pipeline processing."
from p4-spec.
Thanks, Ben!
I think that does make sense. Also, please, check Section 16 ("Deparsing").
There is a paragpraph in there with the same meaning, but I think it
wouldn't hurt to mention that control flows can also be used for deparsing
in Section 5.
Happy hacking,
Vladimir
On Tue, Aug 16, 2016 at 11:52 AM, Ben Pfaff [email protected]
wrote:
I see.
It seems that adding a sentence to the definition of "Control flow" would
be helpful to readers. For example, "Some targets support deparser
control flow blocks that reassemble packets following pipeline processing."—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#31 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMPb8xzcO7_IFpq933-FS2La0Dd4xmg7ks5qggbwgaJpZM4Jkxs9
.
from p4-spec.
@blp Could you please close this by making necessary changes to the draft with Mihai? Or, has this been already taken in the latest draft?
from p4-spec.
@chkim4142 This has been fixed in the draft.
from p4-spec.
Related Issues (20)
- @optional annotation wording is confusing HOT 1
- Add expression to represent an invalid header_union value HOT 3
- Compiler should not expand stack copying in parsers
- The spec for header union operations seems incomplete HOT 7
- Loose description of implicit cast HOT 4
- There is no section on "operations on extern objects" HOT 4
- Should switch statements and select expressions be unified? HOT 3
- Reason for limiting fixed-length types to have a constant width HOT 5
- Sum QoS throughout HOT 3
- Include no-op casts (t -> t) in list of explicit casts HOT 1
- Allow easier casting of serializable enum to a different bit width HOT 5
- Original source of editable figures in the language spec? HOT 3
- Rationale for allowing 0-width type `bit<0>` ? HOT 6
- Confusing note about `action_run` switch HOT 4
- Introduce compile-time bounded for loops and if statements inside of `entries` table property HOT 16
- Should it be legal to have a reference of an extern type name within the definition of that extern? HOT 7
- All spec links from p4.org are broken HOT 2
- Add dynamic array to P4 HOT 13
- Streaming the payload HOT 1
- Language for specifying P4_16 architectures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p4-spec.