-
Notifications
You must be signed in to change notification settings - Fork 449
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
compilation of sample applications #5105
Comments
The tests in this folder are quite particular. They are intended to be compiled with the eBPF PSA compiler. https://github.com/p4lang/p4c/blob/main/backends/ebpf/psa/README.md The generic eBPF tests can be found in https://github.com/p4lang/p4c/tree/main/testdata/p4_16_samples and they end with We should clean this up and explicitly label these programs. |
I worked on the solution provided , as the tests are carried out in an isolated environment is there any way that it could be done in SmartNIC particularly Alveo U200 |
I suspect that there might not be many people reading p4c issues that are familiar with the details of the Alveo U200's development environment. You might get lucky and someone answers your question, but you may get an answer more quickly by asking in some support forum specifically for that product. |
What specifically would you like to do? Run one of the eBPF P4 programs on the U200? |
As far as I know FPGA targets are not supported by this repository. If you want to compile & run P4 code on a U200, you will need to write a different program which targets the XSA architecture. More information on the VitisNetP4 product page and in UG1308. You should contact AMD-Xilinx support directly for any further questions about Alveo products. |
I'm trying to compile a list of programs under p4testdata https://github.com/p4lang/p4c/tree/main/backends/ebpf/tests/p4testdata using p4c-ebpf compiler I'm facing undeclared PORT1 issue due to which I'm not able to compile p4 program
$p4c-ebpf resubmit.p4
resubmit.p4(84): [--Werror=not-found] error: PORT1: declaration not found
send_to_port(ostdx, (PortId_t) PORT1);
^^^^^
The text was updated successfully, but these errors were encountered: