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

How to add support for register read write? #52

Closed
drobinkent opened this issue Jan 3, 2021 · 2 comments
Closed

How to add support for register read write? #52

drobinkent opened this issue Jan 3, 2021 · 2 comments

Comments

@drobinkent
Copy link

How to add support for register read write? Any idea? Or is it already implemented at some place?

@antoninbas
Copy link
Member

Easiest thing to do if you want to add support is to look at how counters are handled and replicate it for registers. Most changes (save for unit tests) should be localized to this file: https://github.com/p4lang/p4runtime-shell/blob/master/p4runtime_sh/shell.py

However, because PI does not implement support for registers (p4lang/PI#376), you would not be able to use p4runtime-shell to access registers when using bmv2.

@drobinkent
Copy link
Author

thanks

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