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

Add permission annotations to tables #21

Closed
wants to merge 7 commits into from
Closed

Conversation

komaljai
Copy link
Owner

@komaljai komaljai commented Apr 11, 2024

@tc_acl will correspond to a 14bit value that encompasses the CRUDXPS permissions for both control and data path.
So for example, "@tc_acl="CRUS:RXP"
Here, control path permission is CRUS and data path permission is RXP. This will map to permission value as 0x38a6
https://github.com/p4tc-dev/p4tc-e2e/issues/39

Copy link

@Sosutha Sosutha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/p4tc-dev/p4tc-e2e/issues/39 - This expects changes in json files for permissions of tables. Please check and update the code accordingly and address the review comments as well

backends/tc/backend.cpp Outdated Show resolved Hide resolved
backends/tc/backend.cpp Outdated Show resolved Hide resolved
testdata/p4tc_samples_outputs/add_entry_3_errors.p4-stderr Outdated Show resolved Hide resolved
backends/tc/backend.cpp Outdated Show resolved Hide resolved
Copy link

@Sosutha Sosutha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

backends/tc/introspection.h Show resolved Hide resolved
backends/tc/backend.cpp Outdated Show resolved Hide resolved
Copy link

@psivanup psivanup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

Copy link

@Sosutha Sosutha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

@komaljai komaljai closed this Apr 22, 2024
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

Successfully merging this pull request may close these issues.

3 participants