We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how can we add custom extern for psa-ebpf backend. is it possoble to write an (ebpf.c) extern and call it from the p4 program
The text was updated successfully, but these errors were encountered:
@osinstom @tatry
You can add the --extern-file command to the compiler, I would take a look at the https://github.com/p4lang/p4c/blob/main/backends/ebpf/CMakeLists.txt#L256C156-L256C169 ebpf_checksum_extern example.
--extern-file
ebpf_checksum_extern
sudo -E p4c/backends/ebpf/run-ebpf-test.py -t test -c "p4c/build/p4c-ebpf" p4c --extern-file p4c/testdata/extern_modules/extern-checksum-ebpf.c p4c/testdata/p4_16_samples/ebpf_checksum_extern.p4
should run it.
Sorry, something went wrong.
No branches or pull requests
how can we add custom extern for psa-ebpf backend. is it possoble to write an (ebpf.c) extern and call it from the p4 program
The text was updated successfully, but these errors were encountered: