bigtcp

package
v1.20.0-pre.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package bigtcp provides helpers to probe and enable BIG TCP for the Linux datapath

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"bigtcp",
	"BIG TCP support",

	cell.Config(defaultUserConfig),
	cell.Provide(newBIGTCP,
		func(c UserConfig) Features { return c }),
	cell.Invoke(func(Config) {}),
)

Functions

func SetGROGSOIPv4MaxSize added in v1.19.0

func SetGROGSOIPv4MaxSize(log *slog.Logger, device string, GROMaxSize, GSOMaxSize int) error

If an error is returned the caller is responsible for rolling back any partial changes.

func SetGROGSOIPv6MaxSize added in v1.19.0

func SetGROGSOIPv6MaxSize(log *slog.Logger, device string, GROMaxSize, GSOMaxSize int) error

If an error is returned the caller is responsible for rolling back any partial changes.

Types

type Config

type Config interface {
	Features

	GetGROIPv6MaxSize() int
	GetGSOIPv6MaxSize() int
	GetGROIPv4MaxSize() int
	GetGSOIPv4MaxSize() int
}

Config will never confuse anyone. After all, it is similar but not identical to bigtcp.Config.

type Features

type Features interface {
	IsIPv4Enabled() bool
	IsIPv6Enabled() bool
}

Features describes which features are enabled in the BigTCP datapath.

type UserConfig added in v1.15.0

type UserConfig struct {
	// EnableIPv6BIGTCP enables IPv6 BIG TCP (larger GSO/GRO limits) for the node including pods.
	EnableIPv6BIGTCP bool

	// EnableIPv4BIGTCP enables IPv4 BIG TCP (larger GSO/GRO limits) for the node including pods.
	EnableIPv4BIGTCP bool
}

UserConfig are the configuration flags that the user can modify.

func (UserConfig) Flags added in v1.15.0

func (def UserConfig) Flags(flags *pflag.FlagSet)

func (UserConfig) IsIPv4Enabled

func (def UserConfig) IsIPv4Enabled() bool

func (UserConfig) IsIPv6Enabled

func (def UserConfig) IsIPv6Enabled() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL