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

Why SimpleSwitchP4RuntimeAPI doesn't support reading and writing register? #57

Open
tang-mouren opened this issue Sep 2, 2023 · 1 comment

Comments

@tang-mouren
Copy link

I'm a beginner to P4 and I'm trying to write a program whose the controller plane needs to get access to registers which are defined in data plane with P4 language. I've tried to use SimpleSwitchP4RuntimeAPI to achieve this function. However, it appeared to me that SimpleSwitchP4RuntimeAPI support getting access to table, counter and meter, except register. I'm confused why SimpleSwitchP4RuntimeAPI is designed like this? If I want to achieve controlling registers in control plane, must I use SimpleSwitchThriftAPI? Is there any way else for I can do?

@edgar-costa
Copy link
Collaborator

Hi @tang-mouren

The P4RuntimeAPI has not been updated for awhile, when we added it 1.5 years ago, there was no support for register reading an writing. That does not depend on us but on the official repos.

Did you find if they added that into the RuntimeAPI?

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