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

Implement arbitrary loops within BMv2 actions #33

Open
jafingerhut opened this issue Dec 27, 2024 · 0 comments
Open

Implement arbitrary loops within BMv2 actions #33

jafingerhut opened this issue Dec 27, 2024 · 0 comments
Labels
mediumtask A task that appears to require a medium level of work

Comments

@jafingerhut
Copy link
Collaborator

BMv2 actions already implement conditional and unconditional forward or backward jump instructions, within the primitive actions of a single P4 action, so it should be possible to implement loops there with only moderate changes to the p4c BMv2 back end code. See:

Note that implementation arbitrary loops in the body of a control likely requires generalizing other parts of the BMv2 JSON file format / data model, probably with a lot of overlap with this project idea: #8

@fruffy fruffy added the mediumtask A task that appears to require a medium level of work label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mediumtask A task that appears to require a medium level of work
Projects
None yet
Development

No branches or pull requests

2 participants