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

Support --filter-mark mark/[/mask] #471

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

rgo3
Copy link
Contributor

@rgo3 rgo3 commented Dec 17, 2024

This commit allows specifying a mask when filtering for packets marks with pwru.

Fixes: #296

@rgo3
Copy link
Contributor Author

rgo3 commented Dec 17, 2024

cc @jschwinger233 Left this as a draft for now as I didn't have good means to test the change.

Copy link
Member

@jschwinger233 jschwinger233 left a comment

Choose a reason for hiding this comment

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

I believe we should filter skbs from kernel space by revising kprobe/kprobe_pwru.c?

@rgo3
Copy link
Contributor Author

rgo3 commented Dec 18, 2024

Not sure I follow. I didn't change the filtering, I just made sure a mask can be passed with the --filter-mark flag, and if it is then we apply it. What would you move to kernel space? Applying the mask?

This commit allows specifying a mask when filtering for packet marks
with pwru.

Fixes: cilium#296

Signed-off-by: Robin Gögge <[email protected]>
@rgo3 rgo3 force-pushed the pr/rgo3/filter-mark-with-mask branch from 08c3102 to 819c4d8 Compare December 18, 2024 14:59
@rgo3
Copy link
Contributor Author

rgo3 commented Dec 19, 2024

Marking as ready for review, as it should be good to be merged.

@rgo3 rgo3 marked this pull request as ready for review December 19, 2024 12:32
@rgo3 rgo3 requested a review from a team as a code owner December 19, 2024 12:32
@jschwinger233 jschwinger233 merged commit 99075ad into cilium:main Dec 19, 2024
6 checks passed
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.

Support --filter-mark mark/[/mask]
3 participants