Skip to content

Commit

Permalink
Update the dash-pipeline programs. (p4lang#4060)
Browse files Browse the repository at this point in the history
* Update the dash-pipeline programs.

* Temporarily patch pna code.

* Reference files.

* Refresh the programs again and update the README.
  • Loading branch information
fruffy authored Oct 3, 2023
1 parent d785e24 commit 44bf90f
Show file tree
Hide file tree
Showing 19 changed files with 10,918 additions and 1,805 deletions.
2 changes: 1 addition & 1 deletion backends/bmv2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ p4c_find_tests("${P4TESTS_FOR_V1MODEL}" v1tests INCLUDE "${V1_INCLUDE_PATTERNS}"

set (BMV2_V1MODEL_TEST_SUITES
"${P4C_SOURCE_DIR}/testdata/p4_16_bmv_errors/*-bmv2.p4"
"${P4C_SOURCE_DIR}/testdata/p4_16_samples/dash/*.p4"
"${P4C_SOURCE_DIR}/testdata/p4_16_samples/dash/*-bmv2.p4"
"${P4C_SOURCE_DIR}/testdata/p4_16_samples/fabric_*/fabric.p4"
"${P4C_SOURCE_DIR}/testdata/p4_16_samples/omec/*.p4"
"${P4C_SOURCE_DIR}/testdata/p4_16_samples/pins/*.p4"
Expand Down
337 changes: 268 additions & 69 deletions ..._16_samples_outputs/dash/dash-pipeline.p4 → dash-pipeline-bmv2.p4

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions testdata/p4_16_samples/dash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
The Disaggregated API for SONiC Hosts (DASH) defines a behavioral model for conformance testing of network devices. The P4 programs contained here model various network architecture scenarios related to the DASH project.

They are sourced from https://github.com/sonic-net/DASH. For more information, please see https://github.com/sonic-net/DASH/blob/main/documentation/general/dash-high-level-design.md.

To refresh the DASH programs used here, please use the following commands:

```
git clone https://github.com/sonic-net/DASH
# V1Model version
p4test DASH/dash-pipeline/bmv2/dash_pipeline.p4 -DTARGET_BMV2_V1MODEL --pp dash-pipeline-v1model-bmv2.p4
# PNA Version
p4test DASH/dash-pipeline/bmv2/dash_pipeline.p4 -DTARGET_DPDK_PNA --pp dash-pipeline-pna-dpdk.p4
```
Loading

0 comments on commit 44bf90f

Please sign in to comment.