roce

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MellanoxDevOnBoardCountMin int = (1)

Variables

View Source
var (
	OSReadFile        = os.ReadFile
	OSReadDir         = os.ReadDir
	LinkLayerRoCE     = "Ethernet"
	LinkLayerIB       = "InfiniBand"
	LinkLayerFileName = "link_layer"
	InfiniBandBase    = "/sys/class/infiniband"
)
View Source
var ROCEDevMellanoxPciVendorIDs = map[string]bool{
	"15b3": true,
}

* !!!NOTICE!!! vendor id MUST be in lowercase!!!

Functions

This section is empty.

Types

type DevInfo

type DevInfo struct {
	DevName   string
	NICName   string
	IPAddrStr string
	GIDStr    string
	VerStr    string
	Port      int
	Index     int
}

type DeviceAttribute

type DeviceAttribute map[string]string /** Example: ["vendor"]:"8086" */

type IRoCEProbe

type IRoCEProbe interface {
	HasRoCEMellanox8Available(ctx context.Context) bool
}

type ModuleAttributeMap

type ModuleAttributeMap map[string](map[string]bool)

type Probe

type Probe struct {
	CmdlineShowGids string
	IRoCEProbe
}

func ProbeNew

func ProbeNew() *Probe

func (*Probe) HasRoCEMellanox8Available

func (probe *Probe) HasRoCEMellanox8Available(ctx context.Context) bool

func (*Probe) RoCEHasMellanoxDevOnBoard

func (probe *Probe) RoCEHasMellanoxDevOnBoard(ctx context.Context) (bool, error)

func (*Probe) RoCEHasMellanoxModuleLoaded

func (probe *Probe) RoCEHasMellanoxModuleLoaded(ctx context.Context) (bool, error)

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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