testpmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortStats

type PortStats struct {
	RXPackets int64
	RXDropped int64
	RXTotal   int64
	TXPackets int64
	TXDropped int64
	TXTotal   int64
}

type StatsIdx

type StatsIdx int
const (
	StatsPort0 StatsIdx = iota
	StatsPort1
	StatsSummary
	StatsArraySize
)

type TestpmdConsole

type TestpmdConsole struct {
	// contains filtered or unexported fields
}

func NewTestpmdConsole

func NewTestpmdConsole(vmiUnderTestConsoleExpecter consoleExpecter,
	vmiUnderTestEastNICPCIAddress,
	trafficGenEastMACAddress,
	vmiUnderTestWestNICPCIAddress,
	trafficGenWestMACAddress string,
	verbosePrintsEnabled bool) *TestpmdConsole

func (TestpmdConsole) ClearStats

func (t TestpmdConsole) ClearStats() error

func (TestpmdConsole) GetStats

func (t TestpmdConsole) GetStats() ([StatsArraySize]PortStats, error)

func (TestpmdConsole) Run

func (t TestpmdConsole) Run() error

Jump to

Keyboard shortcuts

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