Skip to content

Commit

Permalink
Merge pull request #127 from jafingerhut/change-deparser-headers-to-d…
Browse files Browse the repository at this point in the history
…irection-inout

Change deparser header struct to direction inout
  • Loading branch information
jafingerhut authored Feb 15, 2024
2 parents dbe1ea7 + 34b65c2 commit 484af95
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions PNA.mdk
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ the places mentioned in Table [#table-extern-usage].
|-------------------|----------------------------------------------|
| `ActionSelector` | MainControl |
|-------------------|----------------------------------------------|
| `Checksum` | MainParser, MainDeparser |
| `Checksum` | MainParser, MainControl, MainDeparser |
|-------------------|----------------------------------------------|
| `Counter` | MainControl |
|-------------------|----------------------------------------------|
Expand All @@ -775,7 +775,7 @@ the places mentioned in Table [#table-extern-usage].
|-------------------|----------------------------------------------|
| `Hash` | MainControl |
|-------------------|----------------------------------------------|
| `InternetChecksum` | MainParser, MainDeparser |
| `InternetChecksum` | MainParser, MainControl, MainDeparser |
|-------------------|----------------------------------------------|
| `Meter` | MainControl |
|-------------------|----------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion examples/ipsec-acc.p4
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr, // from main control
inout headers_t hdr, // from main control
in main_metadata_t user_meta, // from main control
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-demo-L2-one-table.p4
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-demo-L2-two-tables.p4
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-demo-last-forwarding-action-wins.p4
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-example-tcp-connection-state-tracking.p4
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-example-tcp-connection-tracking.p4
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr,
inout headers_t hdr,
in metadata_t meta,
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/pna-example-template.p4
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ control MainControlImpl(

control MainDeparserImpl(
packet_out pkt,
in headers_t hdr, // from main control
inout headers_t hdr, // from main control
in main_metadata_t user_meta, // from main control
in pna_main_output_metadata_t ostd)
{
Expand Down
2 changes: 1 addition & 1 deletion pna.p4
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ control MainControlT<MH, MM>(

control MainDeparserT<MH, MM>(
packet_out pkt,
in MH main_hdr,
inout MH main_hdr,
in MM main_user_meta,
in pna_main_output_metadata_t ostd);

Expand Down

0 comments on commit 484af95

Please sign in to comment.