-
Notifications
You must be signed in to change notification settings - Fork 445
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
p4c ebpf backend #4578
Comments
You can try any program from testdata/p4_16_samples/ *_ebpf.p4 |
Correct, the tests are collected here in CMake: https://github.com/p4lang/p4c/blob/main/backends/ebpf/CMakeLists.txt#L178 You can run a test like this:
under the hood this script invokes
Note that you need the appropriate kernel version and the dependencies listed in the eBPF back end in order to make this work. |
thanks for responding /usr/share/p4c/p4include/tc/pna.p4(871): [--Werror=type-error] error: package PNA_NIC |
You need a different compiler for this. Likely |
can anyone share me the source code of p4 that can be translated to ebpf code using ebpf_model.p4 architecture . As i am new to this area and dont have much idea about it, it will be really helpful . Thanks in advance!!
The text was updated successfully, but these errors were encountered: