vhost_user

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 vhost_user is a generated VPP binary API for 'vhost_user' module.

It consists of:

8 messages
4 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "vhost_user"
	// APIVersion is the API version of this module.
	APIVersion = "2.0.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x584ddcc0
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type CreateVhostUserIf

type CreateVhostUserIf struct {
	IsServer            uint8
	SockFilename        []byte `struc:"[256]byte"`
	Renumber            uint8
	DisableMrgRxbuf     uint8
	DisableIndirectDesc uint8
	CustomDevInstance   uint32
	UseCustomMac        uint8
	MacAddress          []byte `struc:"[6]byte"`
	Tag                 []byte `struc:"[64]byte"`
}

CreateVhostUserIf represents VPP binary API message 'create_vhost_user_if'.

func (*CreateVhostUserIf) GetCrcString

func (*CreateVhostUserIf) GetCrcString() string

func (*CreateVhostUserIf) GetMessageName

func (*CreateVhostUserIf) GetMessageName() string

func (*CreateVhostUserIf) GetMessageType

func (*CreateVhostUserIf) GetMessageType() api.MessageType

func (*CreateVhostUserIf) Reset

func (m *CreateVhostUserIf) Reset()

type CreateVhostUserIfReply

type CreateVhostUserIfReply struct {
	Retval    int32
	SwIfIndex uint32
}

CreateVhostUserIfReply represents VPP binary API message 'create_vhost_user_if_reply'.

func (*CreateVhostUserIfReply) GetCrcString

func (*CreateVhostUserIfReply) GetCrcString() string

func (*CreateVhostUserIfReply) GetMessageName

func (*CreateVhostUserIfReply) GetMessageName() string

func (*CreateVhostUserIfReply) GetMessageType

func (*CreateVhostUserIfReply) GetMessageType() api.MessageType

func (*CreateVhostUserIfReply) Reset

func (m *CreateVhostUserIfReply) Reset()

type DeleteVhostUserIf

type DeleteVhostUserIf struct {
	SwIfIndex uint32
}

DeleteVhostUserIf represents VPP binary API message 'delete_vhost_user_if'.

func (*DeleteVhostUserIf) GetCrcString

func (*DeleteVhostUserIf) GetCrcString() string

func (*DeleteVhostUserIf) GetMessageName

func (*DeleteVhostUserIf) GetMessageName() string

func (*DeleteVhostUserIf) GetMessageType

func (*DeleteVhostUserIf) GetMessageType() api.MessageType

func (*DeleteVhostUserIf) Reset

func (m *DeleteVhostUserIf) Reset()

type DeleteVhostUserIfReply

type DeleteVhostUserIfReply struct {
	Retval int32
}

DeleteVhostUserIfReply represents VPP binary API message 'delete_vhost_user_if_reply'.

func (*DeleteVhostUserIfReply) GetCrcString

func (*DeleteVhostUserIfReply) GetCrcString() string

func (*DeleteVhostUserIfReply) GetMessageName

func (*DeleteVhostUserIfReply) GetMessageName() string

func (*DeleteVhostUserIfReply) GetMessageType

func (*DeleteVhostUserIfReply) GetMessageType() api.MessageType

func (*DeleteVhostUserIfReply) Reset

func (m *DeleteVhostUserIfReply) Reset()

type ModifyVhostUserIf

type ModifyVhostUserIf struct {
	SwIfIndex         uint32
	IsServer          uint8
	SockFilename      []byte `struc:"[256]byte"`
	Renumber          uint8
	CustomDevInstance uint32
}

ModifyVhostUserIf represents VPP binary API message 'modify_vhost_user_if'.

func (*ModifyVhostUserIf) GetCrcString

func (*ModifyVhostUserIf) GetCrcString() string

func (*ModifyVhostUserIf) GetMessageName

func (*ModifyVhostUserIf) GetMessageName() string

func (*ModifyVhostUserIf) GetMessageType

func (*ModifyVhostUserIf) GetMessageType() api.MessageType

func (*ModifyVhostUserIf) Reset

func (m *ModifyVhostUserIf) Reset()

type ModifyVhostUserIfReply

type ModifyVhostUserIfReply struct {
	Retval int32
}

ModifyVhostUserIfReply represents VPP binary API message 'modify_vhost_user_if_reply'.

func (*ModifyVhostUserIfReply) GetCrcString

func (*ModifyVhostUserIfReply) GetCrcString() string

func (*ModifyVhostUserIfReply) GetMessageName

func (*ModifyVhostUserIfReply) GetMessageName() string

func (*ModifyVhostUserIfReply) GetMessageType

func (*ModifyVhostUserIfReply) GetMessageType() api.MessageType

func (*ModifyVhostUserIfReply) Reset

func (m *ModifyVhostUserIfReply) Reset()

type RPCService

type RPCService interface {
	DumpSwInterfaceVhostUser(ctx context.Context, in *SwInterfaceVhostUserDump) (RPCService_DumpSwInterfaceVhostUserClient, error)
	CreateVhostUserIf(ctx context.Context, in *CreateVhostUserIf) (*CreateVhostUserIfReply, error)
	DeleteVhostUserIf(ctx context.Context, in *DeleteVhostUserIf) (*DeleteVhostUserIfReply, error)
	ModifyVhostUserIf(ctx context.Context, in *ModifyVhostUserIf) (*ModifyVhostUserIfReply, error)
}

RPCService represents RPC service API for vhost_user module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpSwInterfaceVhostUserClient

type RPCService_DumpSwInterfaceVhostUserClient interface {
	Recv() (*SwInterfaceVhostUserDetails, error)
}

type SwInterfaceVhostUserDetails

type SwInterfaceVhostUserDetails struct {
	SwIfIndex      uint32
	InterfaceName  []byte `struc:"[64]byte"`
	VirtioNetHdrSz uint32
	Features       uint64
	IsServer       uint8
	SockFilename   []byte `struc:"[256]byte"`
	NumRegions     uint32
	SockErrno      int32
}

SwInterfaceVhostUserDetails represents VPP binary API message 'sw_interface_vhost_user_details'.

func (*SwInterfaceVhostUserDetails) GetCrcString

func (*SwInterfaceVhostUserDetails) GetCrcString() string

func (*SwInterfaceVhostUserDetails) GetMessageName

func (*SwInterfaceVhostUserDetails) GetMessageName() string

func (*SwInterfaceVhostUserDetails) GetMessageType

func (*SwInterfaceVhostUserDetails) GetMessageType() api.MessageType

func (*SwInterfaceVhostUserDetails) Reset

func (m *SwInterfaceVhostUserDetails) Reset()

type SwInterfaceVhostUserDump

type SwInterfaceVhostUserDump struct{}

SwInterfaceVhostUserDump represents VPP binary API message 'sw_interface_vhost_user_dump'.

func (*SwInterfaceVhostUserDump) GetCrcString

func (*SwInterfaceVhostUserDump) GetCrcString() string

func (*SwInterfaceVhostUserDump) GetMessageName

func (*SwInterfaceVhostUserDump) GetMessageName() string

func (*SwInterfaceVhostUserDump) GetMessageType

func (*SwInterfaceVhostUserDump) GetMessageType() api.MessageType

func (*SwInterfaceVhostUserDump) Reset

func (m *SwInterfaceVhostUserDump) Reset()

Jump to

Keyboard shortcuts

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