-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Enable UDP GRO #1350
Enable UDP GRO #1350
Conversation
This is awesome, thanks!
GSO is used based on
We could experimentally determine a reasonable value, and leave customizing it to future work if anyone ever actually wants that.
I think it should be sufficient to see whether the setsockopt succeeds. |
Ok I've now implemented this. One thing to notice is that since we do a) An alternative implementation could be:
Btw I've pushed this as individual commits to make reviewing easier, I'll squash when it's ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagined we'd pass down a &UdpState
to init
, but this seems fine too.
Awesome, thanks! |
Hello! Thanks for such a great lib! 🤗
As a way to learn quinn I started looking into the IO code and noticed that while GSO is supported, GRO isn't yet. This PR is my first stab at implementing it. Initial results seem promising:
No GRO:
With GRO:
The existing tests pass, so hopefully I'm not benchmarking garbage.
Obviously the PR needs a lot more work - some things that come to mind: