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

Support wildcard write Counters #612

Open
duskmoon314 opened this issue May 23, 2024 · 1 comment
Open

Support wildcard write Counters #612

duskmoon314 opened this issue May 23, 2024 · 1 comment

Comments

@duskmoon314
Copy link

bmv2 (simple_switch_grpc) lacks some p4runtime operations because PI currently does not support them. This issue, similar to #376, is created to discuss wildcard write Counters.

My basic thought is that we can add a loop to write all counter entries instead of only writing one entry when an index is provided. If this is not appropriate, please explain the reason.

I would like to contribute, but I don't fully understand how PI works with bmv2. PI has targets/bmv2, bmv2 has PI, and both have _pi_counter_write. Where should I start to add implementations? And how can I build bmv2 with a modified PI?

@jafingerhut
Copy link
Contributor

One way to build bmv2 with a modified PI, slowly, is to slightly modify a script like the one named install-p4dev-v7.sh described here: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md

It builds both from source code.

Once you do that one time, I am sure there are faster steps you can follow to rebuild only PI, and then only behavioral-model, but I have not worked out the re-building from slightly-modified source steps to verify that they work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants