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

Handle struct expression in ebfp backend #3173

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu [email protected]

Fixes errors that appear in p4c-xdp tests.

@mihaibudiu
Copy link
Contributor Author

@osinstom please review this. Without this change P4 code for ebpf which uses struct expressions enters an infinite loop in the CodeGen visitor. This causes some xdp tests to fail.

@rst0git
Copy link
Member

rst0git commented Apr 4, 2022

@mbudiu-vmw Would it be possible to add tests in this repository as well?

Copy link
Contributor

@osinstom osinstom left a comment

Choose a reason for hiding this comment

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

LGTM. Out of curiosity, what are the p4c-xdp tests that are failing?

@rst0git
Copy link
Member

rst0git commented Apr 5, 2022

LGTM. Out of curiosity, what are the p4c-xdp tests that are failing?

https://github.com/vmware/p4c-xdp/runs/5816847076

@mihaibudiu mihaibudiu merged commit 4837bea into p4lang:main Apr 5, 2022
@mihaibudiu mihaibudiu deleted the ebpf-struct branch April 5, 2022 16:53
@mihaibudiu
Copy link
Contributor Author

@mbudiu-vmw Would it be possible to add tests in this repository as well?

That is a legitimate request; I had asked @osintom to test the code in the xdp repository too for his commits, but I guess he is not doing that. Haven't done it for this test, yet.

@osinstom
Copy link
Contributor

osinstom commented Apr 6, 2022

That is a legitimate request; I had asked @osintom to test the code in the xdp repository too for his commits, but I guess he is not doing that. Haven't done it for this test, yet.

@mbudiu-vmw Running tests for every change with some external plugins is counterproductive.. I suggest moving p4c-xdp to this repository, so we can keep all eBPF-related targets. Otherwise, it's a kind of a nightmare to manually verify every change with p4c-xdp, and doesn't seem to me as a reliable way. I know that p4c-xdp has been created to show how to create p4c extensions, but it's obvious that things can break if something is sitting outside of the repo and we don't have integrations tests (how would we?). How do you verify if modifications to P4C frontend doesn't break p4c-xdp?

@mihaibudiu
Copy link
Contributor Author

It's supposed to be very easy, just check out the repo and add a symlink in extensions.

@mihaibudiu
Copy link
Contributor Author

Then the p4c make check will run the tests.

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.

4 participants