bigtcp

package
v1.16.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	EnableIPv4BIGTCPFlag = "enable-ipv4-big-tcp"
	EnableIPv6BIGTCPFlag = "enable-ipv6-big-tcp"
)

Variables

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

	cell.Config(defaultUserConfig),
	cell.Provide(newBIGTCP),
	cell.Invoke(func(*Configuration) {}),
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	UserConfig
	// contains filtered or unexported fields
}

Configuration is the BIG TCP configuration. The values are finalized after BIG TCP has started and must not be read before that.

func (*Configuration) GetGROIPv4MaxSize

func (c *Configuration) GetGROIPv4MaxSize() int

func (*Configuration) GetGROIPv6MaxSize

func (c *Configuration) GetGROIPv6MaxSize() int

func (*Configuration) GetGSOIPv4MaxSize

func (c *Configuration) GetGSOIPv4MaxSize() int

func (*Configuration) GetGSOIPv6MaxSize

func (c *Configuration) GetGSOIPv6MaxSize() int

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)

Jump to

Keyboard shortcuts

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