-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add documentation for Wireguard Threaded NAPI #9440
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -775,7 +775,13 @@ type FelixConfigurationSpec struct { | |||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
// WireguardEnabledV6 controls whether Wireguard is enabled for IPv6 (encapsulating IPv6 traffic over an IPv6 underlay network). [Default: false] | ||||||||||||||||||||||||||||
WireguardEnabledV6 *bool `json:"wireguardEnabledV6,omitempty"` | ||||||||||||||||||||||||||||
// WireguardThreadingEnabled controls whether Wireguard has NAPI threading enabled. [Default: false] | ||||||||||||||||||||||||||||
// WireguardThreadingEnabled controls whether Wireguard has Threaded NAPI enabled. [Default: false] | ||||||||||||||||||||||||||||
// This increases the maximum number of packets a Wireguard interface can process. | ||||||||||||||||||||||||||||
// There is a known issue https://lore.kernel.org/netdev/CALrw=nEoT2emQ0OAYCjM1d_6Xe_kNLSZ6dhjb5FxrLFYh4kozA@mail.gmail.com/T/ with this setting | ||||||||||||||||||||||||||||
// that may cause NAPI to get stuck holding the global `rtnl_mutex` when a peer is removed. | ||||||||||||||||||||||||||||
// Wireguard peers are removed during node reboots. | ||||||||||||||||||||||||||||
// Kernels which include this patch: https://lore.kernel.org/netdev/20240228121000.526645-2-bigeasy@linutronix.de/ are able to recover after a node drain. | ||||||||||||||||||||||||||||
// This feature should only be considered if you have high packets per second workloads that are causing dropping packets due to a saturated `softirq` CPU core. | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Some edits for clarity and concision. A few other ideas:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I included the Github link to the patch and it shows the tags that include the commit. It is in the main kernel so it may go stale. |
||||||||||||||||||||||||||||
WireguardThreadingEnabled *bool `json:"wireguardThreadingEnabled,omitempty"` | ||||||||||||||||||||||||||||
// WireguardListeningPort controls the listening port used by IPv4 Wireguard. [Default: 51820] | ||||||||||||||||||||||||||||
WireguardListeningPort *int `json:"wireguardListeningPort,omitempty" validate:"omitempty,gt=0,lte=65535"` | ||||||||||||||||||||||||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
@fasaxc I think including a link in the description text is worthwhile. But we don't seen to have anything like this currently.
[1] Are there reasons not to include a link here, or in these descriptions generally?
[2] What would be a good way to format these from source so we turn them into proper links in the site?
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 converted the links to use markdown instead. If there's a way to run the docs with this version of the
FelixConfigurationSpec
docs embedded I can test that markdown will work.