Apply Tailscale TUN offload APIs
This commit is contained in:
parent
414291f6d6
commit
824e7573c0
5 changed files with 277 additions and 13 deletions
14
tun/tun.go
14
tun/tun.go
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue