-
Notifications
You must be signed in to change notification settings - Fork 336
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
wireguard: T5409: Added 'set interfaces wireguard wgX threaded' #2130
Conversation
Any reason to not enable this by default? |
Zero, if not negative, benefit for p2p interfaces. Also, bigger overall CPU usage (but distributed between cores). |
Added 'set interfaces wireguard wgX threaded' command. Process traffic from each peer in a dedicated thread.
3500f55
to
0d54be7
Compare
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.
IMHO this should be enabled by default as it should improve overall system responsiveness if load is distributed among multiple cores.
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 think if WireGuard has it off by default, we should probably follow the same approach.
If it will be a config option, can we then try to streamline it, as it‘s kind of an offload option? As we use offloading for other interface types ethernet, openvpn, too?
|
As discussed in todays maintainer meeting we agreed on: And also implement this for the WIFI subsystem |
Using threaded as CLI node is a very deep term used by kernel threads. To make this more understandable to users, rename the node to per-client-thread. It's also not necessary to test if any one peer is configured and probing if the option is set. There is a base test which requires at least one peer to be configured.
Provides a per-device control to enable/disable the threaded mode for all the napi instances of the given network device, without the need for a device up/down.
Change Summary
Added 'set interfaces wireguard wgX threaded' command.
Process traffic from each peer in a dedicated thread.
Types of changes
Related Task(s)
Component(s) name
wireguard
Proposed changes
Added 'set interfaces wireguard wgX threaded' command.
Process traffic from each peer in a dedicated thread.
This command is allowed only if one enabled peer exists
How to test
Checklist: