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

refactor/fix: match dscp instead of tos #294

Merged
merged 12 commits into from
Aug 20, 2023
Merged

refactor/fix: match dscp instead of tos #294

merged 12 commits into from
Aug 20, 2023

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Aug 20, 2023

Background

A problem was introduced in #292. This is because we added dscp as a member of struct tuples. However, struct tuples is used for five tuples matching. When dscp is added, packets with the non-zero dscp will be rejected due to matching failures. This problem impacts packets unmatched in eBPF programs.

Another change is that, we should match dscp instead of tos.

dscp = tos >> 2

See #295

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

image

@mzz2017 mzz2017 requested a review from a team as a code owner August 20, 2023 04:49
@mzz2017 mzz2017 requested a review from a team as a code owner August 20, 2023 06:05
@dae-prow
Copy link
Contributor

dae-prow bot commented Aug 20, 2023

❌ Your branch is currently out-of-sync to main. No worry, I will fix it for you.

@mzz2017 mzz2017 changed the title fix: packets with tos cannot be passed in dae refactor/fix: match dscp instead of tos Aug 20, 2023
@mzz2017
Copy link
Contributor Author

mzz2017 commented Aug 20, 2023

Test Result:
image
image

dae-prow[bot]
dae-prow bot previously approved these changes Aug 20, 2023
Copy link
Contributor

@dae-prow dae-prow bot left a comment

Choose a reason for hiding this comment

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

🧪 Since the PR has been fully tested, please consider merging it.

@mzz2017
Copy link
Contributor Author

mzz2017 commented Aug 20, 2023

Test Result 2 (tcp, ipv6):
image

piyoki
piyoki previously approved these changes Aug 20, 2023
Copy link
Contributor

@piyoki piyoki left a comment

Choose a reason for hiding this comment

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

Cool feature!

@mzz2017 mzz2017 dismissed stale reviews from piyoki and dae-prow[bot] via b15a2c6 August 20, 2023 15:43
@mzz2017 mzz2017 merged commit c6557ce into main Aug 20, 2023
@mzz2017 mzz2017 deleted the fix_tos_tuples branch August 20, 2023 15:43
@mzz2017 mzz2017 mentioned this pull request Sep 2, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants