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

optimize(routing): fix slow domain++ ip routing #133

Merged
merged 4 commits into from
Jun 11, 2023
Merged

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Jun 10, 2023

Background

domain++ triggers userspace slow IP routing. Userspace routing is implemented by reading kernel eBpf maps and almost amazing 15ms for every IP rule. This PR optimizes it.

Checklist

  • The Pull Request has been fully tested

Full changelog

  1. Replace matching via kernel maps with matching via trie in userspace.
  2. Fix a damn critical problem in IP trie building.

Copy link
Member

@kunish kunish left a comment

Choose a reason for hiding this comment

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

Amazing, damn it

@mzz2017 mzz2017 merged commit 40b553e into main Jun 11, 2023
13 checks passed
@mzz2017 mzz2017 deleted the fix_slow_domain++ branch June 11, 2023 04:48
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.

None yet

2 participants