You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile a simple P4 program containing ingress to egress packet cloning (mirroring) logic with the p4c-ebpf backend targeting the PSA architecture, but the compilation fails, because invalid C code gets generated by the P4C compiler.
fruffy
added
ebpf-psa
Topics related to the eBPF PSA back end
bug
This behavior is unintended and should be fixed.
labels
Oct 11, 2024
Trigary
changed the title
eBPF-PSA: ingress to egress (I2C) cloning fails to compile
eBPF-PSA: ingress to egress (I2E) cloning fails to compile
Oct 25, 2024
Some tests verify that the cloning functionality is supported, but they don't try to pass data using the clone_i2e_meta or clone_e2e_meta parameters. I'm assuming only these parameters aren't implemented yet.
I am trying to compile a simple P4 program containing ingress to egress packet cloning (mirroring) logic with the p4c-ebpf backend targeting the PSA architecture, but the compilation fails, because invalid C code gets generated by the P4C compiler.
My minimalistic P4 program is almost completely empty with the following exceptions. The code follows the example found in the PSA specification.
I invoke the p4c-ebpf compiler via the Makefile found at
backends/ebpf/runtime/kernel.mk
. The compilation outputs the following:The error at line 375 is completely justified based on the relevant part of the generated C code:
p4c version:
Version 1.2.4.2 (SHA: 624c6be80 BUILD: RELEASE)
The P4 source file and the generated C file have been attached: cloning_switch.zip
The text was updated successfully, but these errors were encountered: