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

Does P4Runtime API server within infrap4d plus P4-DPDK handle action parameters that are 128 bits wide? #423

Open
jafingerhut opened this issue Feb 25, 2024 · 3 comments

Comments

@jafingerhut
Copy link

I ask because I tried a test using a P4Runtime API client connecting to infrap4d over a P4Runtime connection, and attempted to add an entry to a table with an action that had one or more parameters that were 128 bits in size, but they failed. When I changed those parameters to 64 bits wide instead, they seemed to succeed in being added, or at least did not get the same error return status back as when I tried it with 128-bit wide action parameters.

@jafingerhut
Copy link
Author

Note: I was testing with infrap4d built as part of the IPDK network container, built according to the published instructions. As of 2024-Feb-20, those instructions seem to build the 23.07 version, not the 24.01 version.

@jafingerhut
Copy link
Author

This test P4 program should be just about the smallest difference between two simple P4 programs that demonstrates that with IPDK networking container v23.07, if you attempt to add an entry to a table with an action that has a parameter with type bit<128> via the P4Runtime API, it causes the infrap4d process to crash. Without that action parameter, everything appears to be working correctly: https://github.com/jafingerhut/p4-guide/tree/master/ipdk/testprog3

@jafingerhut
Copy link
Author

I have not checked this, but it is possible that this issue is only with the P4Runtime API implementation layered on top of P4-DPDK's "native" table modification operations. If the "native" table modification operations support this today, it would be nice to have a link to any documentation what those native APIs are.

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

1 participant