config

package
v1.14.1 Latest Latest
Warning

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

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

Documentation

Overview

Package config provides SR-IOV config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PhysicalFunctions map[string]*PhysicalFunction `yaml:"physicalFunctions"`
}

Config contains list of available physical functions

func ReadConfig

func ReadConfig(ctx context.Context, configFile string) (*Config, error)

ReadConfig reads configuration from file

func (*Config) String

func (c *Config) String() string

type PhysicalFunction

type PhysicalFunction struct {
	PFKernelDriver   string             `yaml:"pfKernelDriver"`
	VFKernelDriver   string             `yaml:"vfKernelDriver"`
	Capabilities     []string           `yaml:"capabilities"`
	ServiceDomains   []string           `yaml:"serviceDomains"`
	VirtualFunctions []*VirtualFunction `yaml:"virtualFunctions"`
}

PhysicalFunction contains physical function capabilities, available services domains and virtual functions

func (*PhysicalFunction) String

func (pf *PhysicalFunction) String() string

type VirtualFunction

type VirtualFunction struct {
	Address    string `yaml:"address"`
	IOMMUGroup uint   `yaml:"iommuGroup"`
}

VirtualFunction contains

Jump to

Keyboard shortcuts

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