virtio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package virtio contains generated bindings for API file virtio.api.

Contents:

1 enum
8 messages

Index

Constants

View Source
const (
	APIFile    = "virtio"
	APIVersion = "3.0.0"
	VersionCrc = 0xa507d784
)

Variables

View Source
var (
	VirtioFlags_name = map[uint32]string{
		1:  "VIRTIO_API_FLAG_GSO",
		2:  "VIRTIO_API_FLAG_CSUM_OFFLOAD",
		4:  "VIRTIO_API_FLAG_GRO_COALESCE",
		8:  "VIRTIO_API_FLAG_PACKED",
		16: "VIRTIO_API_FLAG_IN_ORDER",
		32: "VIRTIO_API_FLAG_BUFFERING",
	}
	VirtioFlags_value = map[string]uint32{
		"VIRTIO_API_FLAG_GSO":          1,
		"VIRTIO_API_FLAG_CSUM_OFFLOAD": 2,
		"VIRTIO_API_FLAG_GRO_COALESCE": 4,
		"VIRTIO_API_FLAG_PACKED":       8,
		"VIRTIO_API_FLAG_IN_ORDER":     16,
		"VIRTIO_API_FLAG_BUFFERING":    32,
	}
)

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

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

RPCService defines RPC service virtio.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SwInterfaceVirtioPciDumpClient

type RPCService_SwInterfaceVirtioPciDumpClient interface {
	Recv() (*SwInterfaceVirtioPciDetails, error)
	api.Stream
}

type SwInterfaceVirtioPciDetails

type SwInterfaceVirtioPciDetails struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	PciAddr   pci_types.PciAddress           `binapi:"pci_address,name=pci_addr" json:"pci_addr,omitempty"`
	MacAddr   ethernet_types.MacAddress      `binapi:"mac_address,name=mac_addr" json:"mac_addr,omitempty"`
	TxRingSz  uint16                         `binapi:"u16,name=tx_ring_sz" json:"tx_ring_sz,omitempty"`
	RxRingSz  uint16                         `binapi:"u16,name=rx_ring_sz" json:"rx_ring_sz,omitempty"`
	Features  uint64                         `binapi:"u64,name=features" json:"features,omitempty"`
}

SwInterfaceVirtioPciDetails defines 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) Marshal

func (m *SwInterfaceVirtioPciDetails) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceVirtioPciDetails) Reset

func (m *SwInterfaceVirtioPciDetails) Reset()

func (*SwInterfaceVirtioPciDetails) Size

func (m *SwInterfaceVirtioPciDetails) Size() (size int)

func (*SwInterfaceVirtioPciDetails) Unmarshal

func (m *SwInterfaceVirtioPciDetails) Unmarshal(b []byte) error

type SwInterfaceVirtioPciDump

type SwInterfaceVirtioPciDump struct{}

SwInterfaceVirtioPciDump defines 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) Marshal

func (m *SwInterfaceVirtioPciDump) Marshal(b []byte) ([]byte, error)

func (*SwInterfaceVirtioPciDump) Reset

func (m *SwInterfaceVirtioPciDump) Reset()

func (*SwInterfaceVirtioPciDump) Size

func (m *SwInterfaceVirtioPciDump) Size() (size int)

func (*SwInterfaceVirtioPciDump) Unmarshal

func (m *SwInterfaceVirtioPciDump) Unmarshal(b []byte) error

type VirtioFlags

type VirtioFlags uint32

VirtioFlags defines enum 'virtio_flags'.

const (
	VIRTIO_API_FLAG_GSO          VirtioFlags = 1
	VIRTIO_API_FLAG_CSUM_OFFLOAD VirtioFlags = 2
	VIRTIO_API_FLAG_GRO_COALESCE VirtioFlags = 4
	VIRTIO_API_FLAG_PACKED       VirtioFlags = 8
	VIRTIO_API_FLAG_IN_ORDER     VirtioFlags = 16
	VIRTIO_API_FLAG_BUFFERING    VirtioFlags = 32
)

func (VirtioFlags) String

func (x VirtioFlags) String() string

type VirtioPciCreate

type VirtioPciCreate struct {
	PciAddr                pci_types.PciAddress      `binapi:"pci_address,name=pci_addr" json:"pci_addr,omitempty"`
	UseRandomMac           bool                      `binapi:"bool,name=use_random_mac" json:"use_random_mac,omitempty"`
	MacAddress             ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
	GsoEnabled             bool                      `binapi:"bool,name=gso_enabled" json:"gso_enabled,omitempty"`
	ChecksumOffloadEnabled bool                      `binapi:"bool,name=checksum_offload_enabled" json:"checksum_offload_enabled,omitempty"`
	Features               uint64                    `binapi:"u64,name=features" json:"features,omitempty"`
}

VirtioPciCreate defines message 'virtio_pci_create'. Deprecated: the message will be removed in the future versions

func (*VirtioPciCreate) GetCrcString

func (*VirtioPciCreate) GetCrcString() string

func (*VirtioPciCreate) GetMessageName

func (*VirtioPciCreate) GetMessageName() string

func (*VirtioPciCreate) GetMessageType

func (*VirtioPciCreate) GetMessageType() api.MessageType

func (*VirtioPciCreate) Marshal

func (m *VirtioPciCreate) Marshal(b []byte) ([]byte, error)

func (*VirtioPciCreate) Reset

func (m *VirtioPciCreate) Reset()

func (*VirtioPciCreate) Size

func (m *VirtioPciCreate) Size() (size int)

func (*VirtioPciCreate) Unmarshal

func (m *VirtioPciCreate) Unmarshal(b []byte) error

type VirtioPciCreateReply

type VirtioPciCreateReply struct {
	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

VirtioPciCreateReply defines message 'virtio_pci_create_reply'. Deprecated: the message will be removed in the future versions

func (*VirtioPciCreateReply) GetCrcString

func (*VirtioPciCreateReply) GetCrcString() string

func (*VirtioPciCreateReply) GetMessageName

func (*VirtioPciCreateReply) GetMessageName() string

func (*VirtioPciCreateReply) GetMessageType

func (*VirtioPciCreateReply) GetMessageType() api.MessageType

func (*VirtioPciCreateReply) Marshal

func (m *VirtioPciCreateReply) Marshal(b []byte) ([]byte, error)

func (*VirtioPciCreateReply) Reset

func (m *VirtioPciCreateReply) Reset()

func (*VirtioPciCreateReply) Size

func (m *VirtioPciCreateReply) Size() (size int)

func (*VirtioPciCreateReply) Unmarshal

func (m *VirtioPciCreateReply) Unmarshal(b []byte) error

type VirtioPciCreateV2

type VirtioPciCreateV2 struct {
	PciAddr      pci_types.PciAddress      `binapi:"pci_address,name=pci_addr" json:"pci_addr,omitempty"`
	UseRandomMac bool                      `binapi:"bool,name=use_random_mac" json:"use_random_mac,omitempty"`
	MacAddress   ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
	VirtioFlags  VirtioFlags               `binapi:"virtio_flags,name=virtio_flags" json:"virtio_flags,omitempty"`
	Features     uint64                    `binapi:"u64,name=features" json:"features,omitempty"`
}

VirtioPciCreateV2 defines message 'virtio_pci_create_v2'.

func (*VirtioPciCreateV2) GetCrcString

func (*VirtioPciCreateV2) GetCrcString() string

func (*VirtioPciCreateV2) GetMessageName

func (*VirtioPciCreateV2) GetMessageName() string

func (*VirtioPciCreateV2) GetMessageType

func (*VirtioPciCreateV2) GetMessageType() api.MessageType

func (*VirtioPciCreateV2) Marshal

func (m *VirtioPciCreateV2) Marshal(b []byte) ([]byte, error)

func (*VirtioPciCreateV2) Reset

func (m *VirtioPciCreateV2) Reset()

func (*VirtioPciCreateV2) Size

func (m *VirtioPciCreateV2) Size() (size int)

func (*VirtioPciCreateV2) Unmarshal

func (m *VirtioPciCreateV2) Unmarshal(b []byte) error

type VirtioPciCreateV2Reply

type VirtioPciCreateV2Reply struct {
	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

VirtioPciCreateV2Reply defines message 'virtio_pci_create_v2_reply'.

func (*VirtioPciCreateV2Reply) GetCrcString

func (*VirtioPciCreateV2Reply) GetCrcString() string

func (*VirtioPciCreateV2Reply) GetMessageName

func (*VirtioPciCreateV2Reply) GetMessageName() string

func (*VirtioPciCreateV2Reply) GetMessageType

func (*VirtioPciCreateV2Reply) GetMessageType() api.MessageType

func (*VirtioPciCreateV2Reply) Marshal

func (m *VirtioPciCreateV2Reply) Marshal(b []byte) ([]byte, error)

func (*VirtioPciCreateV2Reply) Reset

func (m *VirtioPciCreateV2Reply) Reset()

func (*VirtioPciCreateV2Reply) Size

func (m *VirtioPciCreateV2Reply) Size() (size int)

func (*VirtioPciCreateV2Reply) Unmarshal

func (m *VirtioPciCreateV2Reply) Unmarshal(b []byte) error

type VirtioPciDelete

type VirtioPciDelete struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

VirtioPciDelete defines 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) Marshal

func (m *VirtioPciDelete) Marshal(b []byte) ([]byte, error)

func (*VirtioPciDelete) Reset

func (m *VirtioPciDelete) Reset()

func (*VirtioPciDelete) Size

func (m *VirtioPciDelete) Size() (size int)

func (*VirtioPciDelete) Unmarshal

func (m *VirtioPciDelete) Unmarshal(b []byte) error

type VirtioPciDeleteReply

type VirtioPciDeleteReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

VirtioPciDeleteReply defines 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) Marshal

func (m *VirtioPciDeleteReply) Marshal(b []byte) ([]byte, error)

func (*VirtioPciDeleteReply) Reset

func (m *VirtioPciDeleteReply) Reset()

func (*VirtioPciDeleteReply) Size

func (m *VirtioPciDeleteReply) Size() (size int)

func (*VirtioPciDeleteReply) Unmarshal

func (m *VirtioPciDeleteReply) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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