Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change deparser header struct to direction inout #127

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading