Documentation
¶
Index ¶
- Constants
- func GetCPUTopology(string string) (*sysfs.CPUTopology, error)
- func GetNicRxQueueRPS(sysPath, nic string, queue int) (string, error)
- func GetNicTxQueueXPS(sysPath, nic string, queue int) (string, error)
- func GetSystemCPUs() ([]sysfs.CPU, error)
- func NewSysFsManager() *manager
- func SetNicRxQueueRPS(sysPath, nic string, queue int, rpsConf string) error
- func SetNicTxQueueXPS(sysPath, nic string, queue int, xpsConf string) error
- type SysFSManager
Constants ¶
View Source
const (
ClassNetBasePath = "class/net"
)
Variables ¶
This section is empty.
Functions ¶
func GetCPUTopology ¶
func GetCPUTopology(string string) (*sysfs.CPUTopology, error)
func GetNicTxQueueXPS ¶ added in v0.5.35
func GetSystemCPUs ¶
func NewSysFsManager ¶
func NewSysFsManager() *manager
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
Click to show internal directories.
Click to hide internal directories.