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 table.apply().hit correctly in ubpf backend #3498

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu [email protected]
Fixes #3483

@mihaibudiu
Copy link
Contributor Author

@osinstom can you please review this?
It should be fine, it parallels the ebpf backend which has fixed this a long time ago.

@mihaibudiu mihaibudiu requested a review from fruffy August 29, 2022 19:57
@hesingh
Copy link
Contributor

hesingh commented Aug 29, 2022

Now we have yet another place to fix such an issue. It is the ebpf psa code. This code does not even support IfStatement in translator.

@osinstom
Copy link
Contributor

LGTM - sorry for ignoring #3483, I'm quite busy recently with other projects.

@osinstom
Copy link
Contributor

@hesingh ebpf psa code inherits from "legacy" ebpf code. In fact, .hit is used extensively in PTF tests/examples, for example: https://github.com/p4lang/p4c/blob/main/backends/ebpf/psa/examples/upf.p4.

@mihaibudiu mihaibudiu merged commit f0ccf10 into p4lang:main Aug 30, 2022
@mihaibudiu mihaibudiu deleted the issue3483 branch August 30, 2022 21:05
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.

Error occur when compile C file generated by p4c-ubpf with clang
4 participants