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

Fix for pipeline id #3

Closed
wants to merge 11 commits into from
Closed

Fix for pipeline id #3

wants to merge 11 commits into from

Conversation

Sosutha
Copy link
Owner

@Sosutha Sosutha commented Feb 26, 2024

  • Removed pipeline id from template for tc backend
  • Removed pipeline id from introspection.json for tc backend

https://github.com/p4tc-dev/p4tc-e2e/issues/49

@vbnogueira
Copy link

I think the PR is missing the addition of the global variable of type struct p4tc_filter_fields described here (https://github.com/p4tc-dev/p4tc-e2e/issues/49#issuecomment-1946963510).
Also the control blocks eBPF program should use that global variable to determine the pipeline ID.
So instead of hardcoding 1 as in here: https://github.com/Sosutha/p4c/blob/p4tc_pipeline_id_fix/testdata/p4tc_samples_outputs/calculator_control_blocks.c#L68

The program should do something like this:

struct p4tc_table_entry_act_bpf_params__local params = {
     .pipeid = p4tc_filter_fields.pipeid,
     .tblid = 1
};

dependabot bot and others added 6 commits February 26, 2024 13:22
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v3...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Try to handle pna_main_input_metadata_t fields better

* Add support for parser errors in tc backend

---------

Co-authored-by: Mouse <[email protected]>
* Add aligned new / delete libgc overloads. Also cleaned some old stuff that is
not relevant in year 2024

* Add nothrow overrides

* A bit more clear realignment
* Try to speed up the CI build process

* Update install_fedora_deps.sh

* Update ci-test.yml
…4463)

* Bump protobuf version. Fix some missed dependencies here and there

* Grab abseil using FetchContent

* Disable unity builds for Abseil

* Try to bumpprotobuf version in bazel

* Pull abseil

* Address review comments

* Fix UB in json parser that remained from GMP times

* Ensure sanitizer options are propagated down to dependencies (protobuf, abseil, etc.)

* Some readme refines

* See if we can workaround ubsan + int128 bug

* Clarify ubsan issue workaround

* Fix typo in README.md

Co-authored-by: Vladimír Štill <[email protected]>

---------

Co-authored-by: Vladimír Štill <[email protected]>
@Sosutha
Copy link
Owner Author

Sosutha commented Feb 27, 2024

@vbnogueira . This PR is still in progress. Implementation is not yet completed. Once completed, I will let you know for your review

@Sosutha Sosutha force-pushed the p4tc_pipeline_id_fix branch from 0aabb19 to 5804d33 Compare February 27, 2024 07:39
@Sosutha
Copy link
Owner Author

Sosutha commented Feb 27, 2024

@vbnogueira Please review now

@vbnogueira
Copy link

@vbnogueira Please review now

@Sosutha LGTM

asl and others added 2 commits February 27, 2024 13:34
…iables. (p4lang#4398)

* [P4Testgen] Implement a library for common control-plane symbolic variables.

* Review comments.

* Use std::tie.
Copy link

@psivanup psivanup left a comment

Choose a reason for hiding this comment

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

The changes look fine to me

asl and others added 2 commits February 27, 2024 18:00
* Make use of abseil flat_hash_map

* Preallocate at least 16 slots

* Use better hash

* Do not do lookup twice to get final result

* Clarify comment

* Clarify docstring

Co-authored-by: Glen Gibb <[email protected]>

* Link abseil privately to IR

* Clarify iterator usage

* Refined `finalResult` semantics`

---------

Co-authored-by: Glen Gibb <[email protected]>
* Try to clean up the Protobuf includes.

* Review comments.
Copy link

@usha1830 usha1830 left a comment

Choose a reason for hiding this comment

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

LGTM.

* Removed pipeline id from introspection.json for tc backend
* Updated the testcases outputs
@Sosutha Sosutha force-pushed the p4tc_pipeline_id_fix branch from 5804d33 to 524ded6 Compare February 28, 2024 06:28
@Sosutha Sosutha closed this Mar 1, 2024
@Sosutha Sosutha deleted the p4tc_pipeline_id_fix branch March 11, 2024 07:39
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.

6 participants