Apply Tailscale TUN offload APIs

This commit is contained in:
世界 2026-05-17 20:15:11 +08:00
parent 414291f6d6
commit 824e7573c0
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 277 additions and 13 deletions

View file

@ -51,3 +51,17 @@ type Device interface {
// lifetime of a Device.
BatchSize() int
}
// GRODevice is a Device extended with methods for disabling GRO. Certain OS
// versions may have offload bugs. Where these bugs negatively impact throughput
// or break connectivity entirely we can use these methods to disable the
// related offload.
type GRODevice interface {
Device
// DisableUDPGRO disables UDP GRO if it is enabled.
DisableUDPGRO()
// DisableTCPGRO disables TCP GRO if it is enabled.
DisableTCPGRO()
}