p4c icon indicating copy to clipboard operation
p4c copied to clipboard

Port Katran C application to P4.

Open fruffy opened this issue 1 year ago • 4 comments

A small project idea.

The DPDK or BMv2 back end have complex example programs such as dash or the PINS programs.

Unfortunately, the eBPF/XDP back end has no such program and is limited to simple examples. This makes it harder to develop the back end or benchmark changes to it. There are complex eBPF programs, for example Katran, but they are written in C.

A viable case study is to port this program to P4 and compare it to the original implementation in expressiveness and performance.

fruffy avatar Aug 11 '24 13:08 fruffy

@fruffy I can start to work on it

Dscano avatar Aug 12 '24 11:08 Dscano

Sounds great! Let me know if you have questions or confusion. I think the linked program should be the majority of the kernel code.

fruffy avatar Aug 12 '24 19:08 fruffy

Sounds great! Let me know if you have questions or confusion. I think the linked program should be the majority of the kernel code.

Sure, at the moment, I’m finishing the conversion from Madoko to AsciiDoc for P4Runtime. I’m making good progress, so I'll reach you in a few days.

Dscano avatar Aug 13 '24 21:08 Dscano

If you need help with BPF side or run into issues there feel free to ping me happy to help where I can this would be amazing to get working.

jrfastab avatar Aug 13 '24 22:08 jrfastab