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 an explicit optional match key type. #3920

Merged
merged 3 commits into from
Mar 14, 2023
Merged

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Mar 7, 2023

As per discussion in p4lang/PI#587 P4Testgen should handle optional matches explicitly instead of ignoring them. If the optional match is tainted, ignore it, but still add the priority.

This PR also makes match keys target-independent. Now every target extension can add their own match key types without affecting other back ends.

@fruffy fruffy force-pushed the fruffy/optional_priority branch 4 times, most recently from b0d6eb8 to e920b27 Compare March 13, 2023 20:21
@fruffy fruffy marked this pull request as ready for review March 13, 2023 21:24
Copy link
Contributor

@jnfoster jnfoster left a comment

Choose a reason for hiding this comment

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

LGTM

@fruffy fruffy merged commit 5306a43 into main Mar 14, 2023
@fruffy fruffy deleted the fruffy/optional_priority branch March 14, 2023 12:59
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.

2 participants