Skip to content

Commit

Permalink
Issue p4lang#722: Document restrictions on types IH and EH in PSA
Browse files Browse the repository at this point in the history
  • Loading branch information
jafingerhut committed Mar 5, 2022
1 parent 039abca commit 21a68e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions p4-16/psa/PSA.mdk
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,16 @@ for all ingress parsers and control blocks. The egress parser and
control blocks can use the same types for those things, or different
types, as the P4 program author wishes.

The types `IH` and `EH` are restricted to be structs. For each member
of these struct types, it must be one of the following types:

+ `header`
+ `header_union`
+ header stack

The intent is that these structs contain all of the headers that can
be parsed, or deparsed.

```
[INCLUDE=psa.p4:Programmable_blocks]
```
Expand Down

0 comments on commit 21a68e4

Please sign in to comment.