-
Hi guys,
I tried to create a small project using p4c and ebpf. I have two errors that I don't know how to resolve. Can someone help me ?
Here's the console cmd :
p4c-ebpf app_ebpf.p4 -o app_eb…
-
P4 doesn't really have a standard build system (to my knowledge), but to properly handle preprocessors like `#include` and conditionals + macros, a specific compiling context has to be assumed. [Clang…
-
When writing a `standard_metadata_t` field in a control block that is used by the main Ingress/Egress control I get a `NULL name` error for that field. For instance, the attached program will raise th…
-
Hi, I want to running switchML program, which is originally written for Tofino backend.
I have to convert the code written for the Tofino backend to codes written for Bmv2 backend. During this, I en…
-
The latest open source `p4test` as of 2023-Jul-21 source p4lang/p4c source code allows this definition of an extern without any errors or warnings, as I would expect:
```
extern Foo {
Foo();
}…
-
In compiling burstradar I am getting the following warning:
`burstradar.p4(192): [--Wwarn=unsupported] warning: clone3: clone with non-empty argument not supported`
A Google search pointed me to…
-
From these lines of BMv2 code, it appears that at least when the code was written, it was expected that a checksum verification and/or update calculation could include not only constants and fields, b…
-
According to the [P4-14 Version 1.0.4](https://p4.org/p4-spec/p4-14/v1.0.4/tex/p4.pdf), the egress_port is a read-only value. However, if a value can be assigned to it in the egress pipeline using `st…
-
The following program compiles incorrectly:
```p4
#include
#include
struct headers { }
struct metadata { }
parser MyParser(packet_in packet, out headers hdr, inout metadata meta, inout s…
-
For a control block that has codes like the following:
```
table table1 {
key = {
x : exact;
16w0 : exact;
}
actions = { fooAction;}
}
table table2 {
key = {
y …