I'm trying to port some P4 programs originally written for BMv2 to the XDP target, but I'm struggling to describe an equivalent behavior for registers and hash functions. Is there any workaround I could use at the P4 level?
Also, I understand that adding support to the compiler for whatever function in the form of externs would not scale, but it could be interesting to try to make both models (v1 and ebpf/xdp, or psa and ebpf/xdp) more compatible. Any thoughts on that?
I'm trying to port some P4 programs originally written for BMv2 to the XDP target, but I'm struggling to describe an equivalent behavior for registers and hash functions. Is there any workaround I could use at the P4 level?
Also, I understand that adding support to the compiler for whatever function in the form of externs would not scale, but it could be interesting to try to make both models (v1 and ebpf/xdp, or psa and ebpf/xdp) more compatible. Any thoughts on that?