-
Notifications
You must be signed in to change notification settings - Fork 444
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
Conversation
Signed-off-by: Mihai Budiu <[email protected]>
@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. |
@mbudiu-vmw Would it be possible to add tests in this repository as well? |
There was a problem hiding this 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?
https://github.com/vmware/p4c-xdp/runs/5816847076 |
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? |
It's supposed to be very easy, just check out the repo and add a symlink in extensions. |
Then the p4c make check will run the tests. |
Signed-off-by: Mihai Budiu [email protected]
Fixes errors that appear in p4c-xdp tests.