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

Generalize BMv2 so that it can apply the same table multiple times #8

Open
jafingerhut opened this issue Sep 18, 2024 · 0 comments
Open
Labels
bigtask A task that appears to require a big amount of work enhancement New feature or request

Comments

@jafingerhut
Copy link
Collaborator

jafingerhut commented Sep 18, 2024

i.e. multiple times during a single execution of the ingress control on a single packet, or multiple times during the same execution of the egress control on a single packet.

I believe that this would require:

  • generalizing the data model of a BMv2 JSON file in a way that supports a table being applied multiple times, e.g. perhaps there should be some kind of state machine, where each state can refer to one or more tables to be applied, and the state machines have links to next-possible-states. In the current BMv2 JSON file format, tables have next-possible-table fields, which is the root cause of the current restriction.
  • generalizing BMv2 to be able to read and process packets according to this new BMv2 JSON data model.
  • modify the p4c BMv2 back end to generate BMv2 JSON files with this new data model.
@jafingerhut jafingerhut added bigtask A task that appears to require a big amount of work enhancement New feature or request labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigtask A task that appears to require a big amount of work enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant