manager

package
v0.5.39 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClassNetBasePath = "class/net"
)

Variables

This section is empty.

Functions

func GetCPUTopology

func GetCPUTopology(string string) (*sysfs.CPUTopology, error)

func GetNicRxQueueRPS

func GetNicRxQueueRPS(sysPath, nic string, queue int) (string, error)

func GetNicTxQueueXPS added in v0.5.35

func GetNicTxQueueXPS(sysPath, nic string, queue int) (string, error)

func GetSystemCPUs

func GetSystemCPUs() ([]sysfs.CPU, error)

func NewSysFsManager

func NewSysFsManager() *manager

func SetNicRxQueueRPS

func SetNicRxQueueRPS(sysPath, nic string, queue int, rpsConf string) error

func SetNicTxQueueXPS added in v0.5.35

func SetNicTxQueueXPS(sysPath, nic string, queue int, xpsConf string) error

Types

type SysFSManager

type SysFSManager interface {
	GetSystemCPUs() ([]sysfs.CPU, error)
	GetCPUTopology(cpuID string) (*sysfs.CPUTopology, error)
	GetNicRxQueueRPS(sysPath, nic string, queue int) (string, error)
	SetNicRxQueueRPS(sysPath, nic string, queue int, rpsConf string) error
	GetNicTxQueueXPS(sysPath, nic string, queue int) (string, error)
	SetNicTxQueueXPS(sysPath, nic string, queue int, xpsConf string) error
}

func GetSysFsManager

func GetSysFsManager() SysFSManager

Jump to

Keyboard shortcuts

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