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

compilation of sample applications #5105

Open
Nafiah8088 opened this issue Jan 20, 2025 · 5 comments
Open

compilation of sample applications #5105

Nafiah8088 opened this issue Jan 20, 2025 · 5 comments
Labels
ebpf Topics related to the eBPF back end question This is a topic requesting clarification.

Comments

@Nafiah8088
Copy link

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);
^^^^^

@fruffy
Copy link
Collaborator

fruffy commented Jan 20, 2025

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 *_ebpf.p4

We should clean this up and explicitly label these programs.

@fruffy fruffy added question This is a topic requesting clarification. ebpf Topics related to the eBPF back end labels Jan 20, 2025
@Nafiah8088
Copy link
Author

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

@jafingerhut
Copy link
Contributor

jafingerhut commented Jan 21, 2025

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.

@fruffy
Copy link
Collaborator

fruffy commented Jan 21, 2025

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

What specifically would you like to do? Run one of the eBPF P4 programs on the U200?

@thomascalvert-xlnx

@thomascalvert-xlnx
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ebpf Topics related to the eBPF back end question This is a topic requesting clarification.
Projects
None yet
Development

No branches or pull requests

4 participants