Comments (3)
I think if it removes the fully qualified name, then it only makes sense for the annotation to be on the action itself... That said, it's not totally clear to me how this would ripple to any usage. Would it not be exposed as an action in that table in the control plane either? In P4Runtime at least, that's largely not dependent on a fully-qualified name...
(Also not sure what this is for though).
from p4-spec.
The one use case I know of off the top of my head for the @hidden
annotation is to put it on a table definition. When used that way, the table is not visible to a control plane API at all, neither for adding entries, nor its key fields, nor its associated actions. One or more actions of such a hidden table might also be the non-hidden actions of a non-hidden table, in which case it makes perfect sense to me that those actions would have names visible to the controller.
I do not know of any examples where I have seen a P4 table be not-hidden, but it is defined with at least one action that is hidden. I am not sure what would be intended to happen if a controller attempted to read all entries of the table, while some of those entries used a hidden action, for example. I doubt the P4Runtime API specification has an answer to what ought to happen in this situation (but perhaps it does, and I am forgetting it). This sounds to me like a scenario where it is likely that no one wanted to do this, and no one has thought before to ask what ought to happen.
from p4-spec.
Mm, I think this would fall under the 'read-write' symmetry requirement basically, so no such entries should be visible. If that table was additionally marked as dataplane volatile, then I really don't know, but would probably err on the side of still 'not visible' for simplicity.
from p4-spec.
Related Issues (20)
- remove overflow warning when using signed integer literals of same representation size? HOT 7
- Clarification regarding Exit statement HOT 19
- L-Value Syntax HOT 3
- Clarification on the calling convention of directionless, extern parameter HOT 4
- Subtlety between length and size. HOT 3
- Missing code-block markup in section "Static assertions" HOT 1
- Allow compile-time resolvable expressions for switch labels? HOT 5
- Incomplete list of operators in compile-time known values section? HOT 1
- Modular match fields for tables. HOT 18
- The type nesting and typedef rules are not clear HOT 5
- Investigate whether PDF/HTML generated for all versions are in git repo history HOT 2
- Should identifiers declared with const be a local compile-time known value if their init expression is? HOT 8
- Should run-time variables that a sophisticated compiler can prove must be equal to a compile-time known value, be treated as a compile-time known value? HOT 2
- Document restriction that numeric priorities may not be specified within `const entries`
- Do we allow `string` type to be aliased by `typedef`? HOT 1
- Misleading code example for 8.24. Operations on types that are type variables
- Allow compile-time concatenation of strings HOT 1
- Consider AsciiDoc for future format of source for P4 language specification HOT 7
- CI: Create a CI job that builds the spec PDF and HTML for a PR
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.