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

Update p4-examples README #40

Merged
merged 3 commits into from
Jan 22, 2025
Merged

Update p4-examples README #40

merged 3 commits into from
Jan 22, 2025

Conversation

vgurevich
Copy link
Contributor

Updated p4-examples with the up-to-date instructions and made it a proper markdown file.

Updated p4-examples with the up-to-date instructions and made it a proper markdown file.

Signed-off-by: Vladimir Gurevich <[email protected]>
To build all P4_14 examples use the command:

```
$SDE/p4studio/p4studio build p4-16-programs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the command to build all P4_14 programs be different than the one to build all P4_16 programs above?

sudo $SDE_INSTALL/bin/veth_setup.sh
```

To run the PTF tests on the Tofino Model you will need 3 separate windows (or, at least, shell sessions). Again, it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete sentence "Againt, it" above. Remove, or complete the thought?

* `p4_16_programs`
Example P4_16 programs
* `programs`
Example P4_14 programs/to
Copy link
Contributor

@jafingerhut jafingerhut Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "/to" at the end of this line looks like a typo.

$SDE/run_p4_tests.sh [--arch tofino2] -p example_name
```

Please, be aware that the scripts mentioned above have special code to make running the examples as easy as possible by being aware and properly consuming additional files stored in the examples' subdirectores. Running your pwn programs and their PTF tests might require additional options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: pwn -> own?

Fixed the typos as per @jafingerhut 's comments

Signed-off-by: Vladimir Gurevich <[email protected]>
@vgurevich
Copy link
Contributor Author

Thanks, @jafingerhut -- all fixed!

Copy link
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jafingerhut jafingerhut merged commit e9eed54 into p4lang:main Jan 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants