mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-04 03:51:42 +02:00
This only saves ~32KB in the minimal linux/amd64 binary, but it's a step towards permitting not depending on gvisor for small builds. Updates #17283 Change-Id: Iae8da5e9465127de354dbcaf25e794a6832d891b Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
29 lines
422 B
Go
29 lines
422 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ios || ts_omit_gro
|
|
|
|
package gro
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"tailscale.com/net/packet"
|
|
)
|
|
|
|
type GRO struct{}
|
|
|
|
func NewGRO() *GRO {
|
|
if runtime.GOOS == "ios" {
|
|
panic("unsupported on iOS")
|
|
}
|
|
panic("GRO disabled in build")
|
|
|
|
}
|
|
|
|
func (g *GRO) SetDispatcher(any) {}
|
|
|
|
func (g *GRO) Enqueue(_ *packet.Parsed) {}
|
|
|
|
func (g *GRO) Flush() {}
|