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

Dpdk Backend: Minor changes to add error check for mask operands and adding optional match kind to pna.p4 #3588

Merged
merged 2 commits into from
Oct 25, 2022

Conversation

usha1830
Copy link
Contributor

No description provided.

selector /// Used for dynamic action selection via the ActionSelector extern
range, /// Used to represent min..max intervals
selector, /// Used for dynamic action selection via the ActionSelector extern
optional /// Either an exact match, or a wildcard matching any value for the entire field

Choose a reason for hiding this comment

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

Right now the PNA spec does not even specify the match kinds. It just says:

TBD: Consider simply referencing the corresponding section of the PSA specification for this, unless we want to have something different in PNA.

It seems like it is best if we decide on the spec of match kinds here before adding to things to DPDK pna implementation.

Copy link
Contributor

@jafingerhut jafingerhut Oct 21, 2022

Choose a reason for hiding this comment

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

There is one existing PR, and another that I believe Nate Foster is working on, that would add optional match_kind to PNA: p4lang/pna#62

It has been in v1model and PSA for over a year now, I believe, and I thought it was already in PNA, but must have neglected to add it when it was added to PSA. I can add this as a discussion topic for the 2022-Oct-24 public PNA meeting.

@usha1830
Copy link
Contributor Author

Since optional mathckind PR p4lang/pna#62 is now merged, can I get a review on this PR.

@mihaibudiu mihaibudiu merged commit 4ee7c57 into p4lang:main Oct 25, 2022
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.

4 participants