virtio

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package virtio is a generated VPP binary API for 'virtio' module.

It consists of:

6 messages
3 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "virtio"
	// APIVersion is the API version of this module.
	APIVersion = "1.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0xcffb2d69
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

type RPCService interface {
	DumpSwInterfaceVirtioPci(ctx context.Context, in *SwInterfaceVirtioPciDump) (RPCService_DumpSwInterfaceVirtioPciClient, error)
	VirtioPciCreate(ctx context.Context, in *VirtioPciCreate) (*VirtioPciCreateReply, error)
	VirtioPciDelete(ctx context.Context, in *VirtioPciDelete) (*VirtioPciDeleteReply, error)
}

RPCService represents RPC service API for virtio module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSwInterfaceVirtioPciClient

type RPCService_DumpSwInterfaceVirtioPciClient interface {
	Recv() (*SwInterfaceVirtioPciDetails, error)
}

type SwInterfaceVirtioPciDetails

type SwInterfaceVirtioPciDetails struct {
	SwIfIndex uint32
	PciAddr   uint32
	MacAddr   []byte `struc:"[6]byte"`
	TxRingSz  uint16
	RxRingSz  uint16
	Features  uint64
}

SwInterfaceVirtioPciDetails represents VPP binary API message 'sw_interface_virtio_pci_details'.

func (*SwInterfaceVirtioPciDetails) GetCrcString

func (*SwInterfaceVirtioPciDetails) GetCrcString() string

func (*SwInterfaceVirtioPciDetails) GetMessageName

func (*SwInterfaceVirtioPciDetails) GetMessageName() string

func (*SwInterfaceVirtioPciDetails) GetMessageType

func (*SwInterfaceVirtioPciDetails) GetMessageType() api.MessageType

func (*SwInterfaceVirtioPciDetails) Reset

func (m *SwInterfaceVirtioPciDetails) Reset()

type SwInterfaceVirtioPciDump

type SwInterfaceVirtioPciDump struct{}

SwInterfaceVirtioPciDump represents VPP binary API message 'sw_interface_virtio_pci_dump'.

func (*SwInterfaceVirtioPciDump) GetCrcString

func (*SwInterfaceVirtioPciDump) GetCrcString() string

func (*SwInterfaceVirtioPciDump) GetMessageName

func (*SwInterfaceVirtioPciDump) GetMessageName() string

func (*SwInterfaceVirtioPciDump) GetMessageType

func (*SwInterfaceVirtioPciDump) GetMessageType() api.MessageType

func (*SwInterfaceVirtioPciDump) Reset

func (m *SwInterfaceVirtioPciDump) Reset()

type VirtioPciCreate

type VirtioPciCreate struct {
	PciAddr      uint32
	UseRandomMac uint8
	MacAddress   []byte `struc:"[6]byte"`
	GsoEnabled   uint8
	Features     uint64
}

VirtioPciCreate represents VPP binary API message 'virtio_pci_create'.

func (*VirtioPciCreate) GetCrcString

func (*VirtioPciCreate) GetCrcString() string

func (*VirtioPciCreate) GetMessageName

func (*VirtioPciCreate) GetMessageName() string

func (*VirtioPciCreate) GetMessageType

func (*VirtioPciCreate) GetMessageType() api.MessageType

func (*VirtioPciCreate) Reset

func (m *VirtioPciCreate) Reset()

type VirtioPciCreateReply

type VirtioPciCreateReply struct {
	Retval    int32
	SwIfIndex uint32
}

VirtioPciCreateReply represents VPP binary API message 'virtio_pci_create_reply'.

func (*VirtioPciCreateReply) GetCrcString

func (*VirtioPciCreateReply) GetCrcString() string

func (*VirtioPciCreateReply) GetMessageName

func (*VirtioPciCreateReply) GetMessageName() string

func (*VirtioPciCreateReply) GetMessageType

func (*VirtioPciCreateReply) GetMessageType() api.MessageType

func (*VirtioPciCreateReply) Reset

func (m *VirtioPciCreateReply) Reset()

type VirtioPciDelete

type VirtioPciDelete struct {
	SwIfIndex uint32
}

VirtioPciDelete represents VPP binary API message 'virtio_pci_delete'.

func (*VirtioPciDelete) GetCrcString

func (*VirtioPciDelete) GetCrcString() string

func (*VirtioPciDelete) GetMessageName

func (*VirtioPciDelete) GetMessageName() string

func (*VirtioPciDelete) GetMessageType

func (*VirtioPciDelete) GetMessageType() api.MessageType

func (*VirtioPciDelete) Reset

func (m *VirtioPciDelete) Reset()

type VirtioPciDeleteReply

type VirtioPciDeleteReply struct {
	Retval int32
}

VirtioPciDeleteReply represents VPP binary API message 'virtio_pci_delete_reply'.

func (*VirtioPciDeleteReply) GetCrcString

func (*VirtioPciDeleteReply) GetCrcString() string

func (*VirtioPciDeleteReply) GetMessageName

func (*VirtioPciDeleteReply) GetMessageName() string

func (*VirtioPciDeleteReply) GetMessageType

func (*VirtioPciDeleteReply) GetMessageType() api.MessageType

func (*VirtioPciDeleteReply) Reset

func (m *VirtioPciDeleteReply) Reset()

Jump to

Keyboard shortcuts

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