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

Small fixes for p4tc #5097

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Small fixes for p4tc #5097

merged 3 commits into from
Jan 23, 2025

Conversation

vbnogueira
Copy link
Contributor

@vbnogueira vbnogueira commented Jan 14, 2025

  • Convert IPv4 and IPv6 protocol values to network order before comparison
  • Update pna.h
  • Zero initialise compiler_meta__->egress_port

@fruffy fruffy added the p4tc Topics related to the P4-TC back end label Jan 14, 2025
@vbnogueira
Copy link
Contributor Author

@komaljai please take a look when you have some time

@vbnogueira vbnogueira force-pushed the small_fixes_for_p4tc branch from 6fcff63 to 75cef15 Compare January 16, 2025 13:26
Convert IPv4 and IPv6 protocol values to network order before comparison

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Update pna.h and fix some whitespaces

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
In some cases, the skb may have put rubbish in the skb->cb
When this happens, egress_port may be different then zero and end up
causing an accidental redirect
Fix this by initialising it to zero at the start of the entrypoint
function

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
@vbnogueira vbnogueira force-pushed the small_fixes_for_p4tc branch from 75cef15 to af007ba Compare January 20, 2025 08:50
@komaljai komaljai added this pull request to the merge queue Jan 23, 2025
Merged via the queue into p4lang:main with commit e583d22 Jan 23, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tc Topics related to the P4-TC back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants