wgengine/netstack: use build tags to exclude gVisor GRO importation on iOS (#13015)

Updates tailscale/corp#22125

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited
2024-08-03 15:03:44 -07:00
committed by GitHub
parent a7a394e7d9
commit 25f0a3fc8f
3 changed files with 47 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import (
"gvisor.dev/gvisor/pkg/tcpip/header"
"gvisor.dev/gvisor/pkg/tcpip/header/parse"
"gvisor.dev/gvisor/pkg/tcpip/stack"
"gvisor.dev/gvisor/pkg/tcpip/stack/gro"
"tailscale.com/net/packet"
"tailscale.com/types/ipproto"
)
@ -96,7 +95,7 @@ type linkEndpoint struct {
dispatcher stack.NetworkDispatcher
linkAddr tcpip.LinkAddress
mtu uint32
gro gro.GRO // mu only guards access to gro.Dispatcher
gro gro // mu only guards access to gro.Dispatcher
q *queue // outbound
}