Version: v1.10.4 Latest Latest

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 17 Imported by: 3



Package maps performs various lifecycle operations related to maps in the datapath.



This section is empty.


This section is empty.


This section is empty.


type MapSweeper added in v1.7.0

type MapSweeper struct {
	// contains filtered or unexported fields

MapSweeper is responsible for checking stale map paths on the filesystem and garbage collecting the endpoint if the corresponding endpoint no longer exists.

func NewMapSweeper added in v1.7.0

func NewMapSweeper(g endpointManager) *MapSweeper

NewMapSweeper creates an object that walks map paths and garbage-collects them.

func (*MapSweeper) CollectStaleMapGarbage added in v1.7.0

func (ms *MapSweeper) CollectStaleMapGarbage()

CollectStaleMapGarbage cleans up stale content in the BPF maps from the datapath.

func (*MapSweeper) RemoveDisabledMaps added in v1.7.0

func (ms *MapSweeper) RemoveDisabledMaps()

RemoveDisabledMaps removes BPF maps in the filesystem for features that have been disabled. The maps may still be in use in which case they will continue to live until the BPF program using them is being replaced.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL