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

Port Katran C application to P4. #4863

Open
fruffy opened this issue Aug 11, 2024 · 4 comments
Open

Port Katran C application to P4. #4863

fruffy opened this issue Aug 11, 2024 · 4 comments
Labels
ebpf Topics related to the eBPF back end enhancement This topic discusses an improvement to existing compiler code. good-first-issue An issue that could be solved by someone new to the code base.

Comments

@fruffy
Copy link
Collaborator

fruffy commented Aug 11, 2024

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 fruffy added enhancement This topic discusses an improvement to existing compiler code. ebpf Topics related to the eBPF back end good-first-issue An issue that could be solved by someone new to the code base. labels Aug 11, 2024
@Dscano
Copy link

Dscano commented Aug 12, 2024

@fruffy I can start to work on it

@fruffy
Copy link
Collaborator Author

fruffy commented Aug 12, 2024

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

@Dscano
Copy link

Dscano commented Aug 13, 2024

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.

@jrfastab
Copy link

jrfastab commented Aug 13, 2024

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.

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 enhancement This topic discusses an improvement to existing compiler code. good-first-issue An issue that could be solved by someone new to the code base.
Projects
None yet
Development

No branches or pull requests

3 participants