jump

package
v1.11.0-cni-plu...-7acfd45 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxSubPrograms is the maximum number of policy sub-programs that
	// we allow for a single hook.  BPF allows a maximum of 32 tail calls
	// (so 33 chained programs in total) but we reserve some for our own use.
	MaxSubPrograms = 24

	// TCMaxEntryPoints is the maximum number of policy program entry points
	// (i.e. first program in a chain of sub-programs for the policy).
	TCMaxEntryPoints = 10000
	// TCMaxEntries is the size fo the map, i.e. all possible sub-programs.
	TCMaxEntries = TCMaxEntryPoints * MaxSubPrograms

	XDPMaxEntryPoints = 100
	XDPMaxEntries     = XDPMaxEntryPoints * MaxSubPrograms
)

Variables

View Source
var MapParameters = maps.MapParameters{
	Type:       "prog_array",
	KeySize:    4,
	ValueSize:  4,
	MaxEntries: TCMaxEntries,
	Name:       "cali_jump",
	Version:    3,
}
View Source
var XDPMapParameters = maps.MapParameters{
	Type:       "prog_array",
	KeySize:    4,
	ValueSize:  4,
	MaxEntries: XDPMaxEntries,
	Name:       "xdp_cali_jump",
	Version:    3,
}

Functions

func Key

func Key(idx int) []byte

func Map

func Map() maps.Map

func Value

func Value(fd uint32) []byte

func XDPMap

func XDPMap() maps.Map

Types

This section is empty.

Jump to

Keyboard shortcuts

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