Skip to content

Major Loop Improvements #14

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

Merged
merged 3 commits into from
Mar 27, 2025
Merged

Major Loop Improvements #14

merged 3 commits into from
Mar 27, 2025

Conversation

gamemann
Copy link
Owner

@gamemann gamemann commented Mar 27, 2025

This PR adds the option to use a newer BPF helper function, bpf_loop(). While the function itself was added in kernel 5.17, open coded iterators wasn't added until kernel 6.4. So you will need kernel 6.4 or above.

Using this newer function results in improvements to the BPF verifier and allows us to specify a much larger source port range using the MIN_PORT and MAX_PORT constants.

@gamemann gamemann merged commit ad1f25d into master Mar 27, 2025
3 checks passed
@gamemann gamemann deleted the 20250327-loop-improvements branch March 28, 2025 00:00
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.

1 participant