vmxnet3

package
v3.29.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Contents: - 2 structs - 8 messages

Index

Constants

View Source
const (
	APIFile    = "vmxnet3"
	APIVersion = "1.2.0"
	VersionCrc = 0x609454ea
)

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 {
	SwVmxnet3InterfaceDump(ctx context.Context, in *SwVmxnet3InterfaceDump) (RPCService_SwVmxnet3InterfaceDumpClient, error)
	Vmxnet3Create(ctx context.Context, in *Vmxnet3Create) (*Vmxnet3CreateReply, error)
	Vmxnet3Delete(ctx context.Context, in *Vmxnet3Delete) (*Vmxnet3DeleteReply, error)
	Vmxnet3Dump(ctx context.Context, in *Vmxnet3Dump) (RPCService_Vmxnet3DumpClient, error)
}

RPCService defines RPC service vmxnet3.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_SwVmxnet3InterfaceDumpClient

type RPCService_SwVmxnet3InterfaceDumpClient interface {
	Recv() (*SwVmxnet3InterfaceDetails, error)
	api.Stream
}

type RPCService_Vmxnet3DumpClient

type RPCService_Vmxnet3DumpClient interface {
	Recv() (*Vmxnet3Details, error)
	api.Stream
}

type SwVmxnet3InterfaceDetails

type SwVmxnet3InterfaceDetails struct {
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IfName      string                         `binapi:"string[64],name=if_name" json:"if_name,omitempty"`
	HwAddr      ethernet_types.MacAddress      `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"`
	PciAddr     uint32                         `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
	Version     uint8                          `binapi:"u8,name=version" json:"version,omitempty"`
	AdminUpDown bool                           `binapi:"bool,name=admin_up_down" json:"admin_up_down,omitempty"`
	RxCount     uint8                          `binapi:"u8,name=rx_count" json:"rx_count,omitempty"`
	RxList      [16]Vmxnet3RxList              `binapi:"vmxnet3_rx_list[16],name=rx_list" json:"rx_list,omitempty"`
	TxCount     uint8                          `binapi:"u8,name=tx_count" json:"tx_count,omitempty"`
	TxList      [8]Vmxnet3TxList               `binapi:"vmxnet3_tx_list[8],name=tx_list" json:"tx_list,omitempty"`
}

Reply for vmxnet3_interface_dump

  • sw_if_index - index of the interface
  • if_name - name of the interface
  • hw_addr - interface MAC address
  • pci_addr - pci address of the interface
  • version - vmxnet3 hardware version
  • admin_up_down - interface administrative status
  • rx_count - number of elements in rx_list
  • rx_list - list of vmxnet3_rx_list
  • tx_count - number of elements in tx_list
  • tx_list - list of vmnxnet3_tx_list

SwVmxnet3InterfaceDetails defines message 'sw_vmxnet3_interface_details'.

func (*SwVmxnet3InterfaceDetails) GetCrcString

func (*SwVmxnet3InterfaceDetails) GetCrcString() string

func (*SwVmxnet3InterfaceDetails) GetMessageName

func (*SwVmxnet3InterfaceDetails) GetMessageName() string

func (*SwVmxnet3InterfaceDetails) GetMessageType

func (*SwVmxnet3InterfaceDetails) GetMessageType() api.MessageType

func (*SwVmxnet3InterfaceDetails) Marshal

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

func (*SwVmxnet3InterfaceDetails) Reset

func (m *SwVmxnet3InterfaceDetails) Reset()

func (*SwVmxnet3InterfaceDetails) Size

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

func (*SwVmxnet3InterfaceDetails) Unmarshal

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

type SwVmxnet3InterfaceDump

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

Dump vmxnet3 interfaces

  • vl_api_interface_index_t sw_if_index [default=0xffffffff];

SwVmxnet3InterfaceDump defines message 'sw_vmxnet3_interface_dump'.

func (*SwVmxnet3InterfaceDump) GetCrcString

func (*SwVmxnet3InterfaceDump) GetCrcString() string

func (*SwVmxnet3InterfaceDump) GetMessageName

func (*SwVmxnet3InterfaceDump) GetMessageName() string

func (*SwVmxnet3InterfaceDump) GetMessageType

func (*SwVmxnet3InterfaceDump) GetMessageType() api.MessageType

func (*SwVmxnet3InterfaceDump) Marshal

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

func (*SwVmxnet3InterfaceDump) Reset

func (m *SwVmxnet3InterfaceDump) Reset()

func (*SwVmxnet3InterfaceDump) Size

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

func (*SwVmxnet3InterfaceDump) Unmarshal

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

type Vmxnet3Create

type Vmxnet3Create struct {
	PciAddr    uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
	EnableElog int32  `binapi:"i32,name=enable_elog" json:"enable_elog,omitempty"`
	RxqSize    uint16 `binapi:"u16,name=rxq_size" json:"rxq_size,omitempty"`
	RxqNum     uint16 `binapi:"u16,name=rxq_num" json:"rxq_num,omitempty"`
	TxqSize    uint16 `binapi:"u16,name=txq_size" json:"txq_size,omitempty"`
	TxqNum     uint16 `binapi:"u16,name=txq_num" json:"txq_num,omitempty"`
	Bind       uint8  `binapi:"u8,name=bind" json:"bind,omitempty"`
	EnableGso  bool   `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"`
}

- client_index - opaque cookie to identify the sender

  • pci_addr - pci address as unsigned 32bit integer: 0-15 domain, 16-23 bus, 24-28 slot, 29-31 function ddddddddddddddddbbbbbbbbsssssfff
  • enable_elog - turn on elog (optional - default is off)
  • rxq_size - receive queue size (optional - default is 1024)
  • rxq_num - number of receive queues (optional - default is 1)
  • txq_size - transmit queue size (optional - default is 1024)
  • txq_num - number of transmit queues (optional - default is 1)
  • bind - automatically bind PCI to vfio-pci module (optional - default is 0)
  • enable_gso - enable gso (optional - default is 0)

Vmxnet3Create defines message 'vmxnet3_create'.

func (*Vmxnet3Create) GetCrcString

func (*Vmxnet3Create) GetCrcString() string

func (*Vmxnet3Create) GetMessageName

func (*Vmxnet3Create) GetMessageName() string

func (*Vmxnet3Create) GetMessageType

func (*Vmxnet3Create) GetMessageType() api.MessageType

func (*Vmxnet3Create) Marshal

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

func (*Vmxnet3Create) Reset

func (m *Vmxnet3Create) Reset()

func (*Vmxnet3Create) Size

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

func (*Vmxnet3Create) Unmarshal

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

type Vmxnet3CreateReply

type Vmxnet3CreateReply 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"`
}

- context - sender context, to match reply w/ request

  • retval - return value for request
  • sw_if_index - software index for the new vmxnet3 interface

Vmxnet3CreateReply defines message 'vmxnet3_create_reply'.

func (*Vmxnet3CreateReply) GetCrcString

func (*Vmxnet3CreateReply) GetCrcString() string

func (*Vmxnet3CreateReply) GetMessageName

func (*Vmxnet3CreateReply) GetMessageName() string

func (*Vmxnet3CreateReply) GetMessageType

func (*Vmxnet3CreateReply) GetMessageType() api.MessageType

func (*Vmxnet3CreateReply) Marshal

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

func (*Vmxnet3CreateReply) Reset

func (m *Vmxnet3CreateReply) Reset()

func (*Vmxnet3CreateReply) Size

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

func (*Vmxnet3CreateReply) Unmarshal

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

type Vmxnet3Delete

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

- client_index - opaque cookie to identify the sender

  • sw_if_index - interface index

Vmxnet3Delete defines message 'vmxnet3_delete'.

func (*Vmxnet3Delete) GetCrcString

func (*Vmxnet3Delete) GetCrcString() string

func (*Vmxnet3Delete) GetMessageName

func (*Vmxnet3Delete) GetMessageName() string

func (*Vmxnet3Delete) GetMessageType

func (*Vmxnet3Delete) GetMessageType() api.MessageType

func (*Vmxnet3Delete) Marshal

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

func (*Vmxnet3Delete) Reset

func (m *Vmxnet3Delete) Reset()

func (*Vmxnet3Delete) Size

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

func (*Vmxnet3Delete) Unmarshal

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

type Vmxnet3DeleteReply

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

Vmxnet3DeleteReply defines message 'vmxnet3_delete_reply'.

func (*Vmxnet3DeleteReply) GetCrcString

func (*Vmxnet3DeleteReply) GetCrcString() string

func (*Vmxnet3DeleteReply) GetMessageName

func (*Vmxnet3DeleteReply) GetMessageName() string

func (*Vmxnet3DeleteReply) GetMessageType

func (*Vmxnet3DeleteReply) GetMessageType() api.MessageType

func (*Vmxnet3DeleteReply) Marshal

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

func (*Vmxnet3DeleteReply) Reset

func (m *Vmxnet3DeleteReply) Reset()

func (*Vmxnet3DeleteReply) Size

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

func (*Vmxnet3DeleteReply) Unmarshal

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

type Vmxnet3Details

type Vmxnet3Details struct {
	SwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	IfName      string                         `binapi:"string[64],name=if_name" json:"if_name,omitempty"`
	HwAddr      ethernet_types.MacAddress      `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"`
	PciAddr     uint32                         `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"`
	Version     uint8                          `binapi:"u8,name=version" json:"version,omitempty"`
	AdminUpDown bool                           `binapi:"bool,name=admin_up_down" json:"admin_up_down,omitempty"`
	RxCount     uint8                          `binapi:"u8,name=rx_count" json:"rx_count,omitempty"`
	RxList      [16]Vmxnet3RxList              `binapi:"vmxnet3_rx_list[16],name=rx_list" json:"rx_list,omitempty"`
	TxCount     uint8                          `binapi:"u8,name=tx_count" json:"tx_count,omitempty"`
	TxList      [8]Vmxnet3TxList               `binapi:"vmxnet3_tx_list[8],name=tx_list" json:"tx_list,omitempty"`
}

Memory interface details structure

  • sw_if_index - index of the interface
  • if_name - name of the interface
  • hw_addr - interface MAC address
  • pci_addr - pci address of the interface
  • version - vmxnet3 hardware version
  • admin_up_down - interface administrative status
  • rx_count - number of elements in rx_list
  • rx_list - list of vmxnet3_rx_list
  • tx_count - number of elements in tx_list
  • tx_list - list of vmnxnet3_tx_list

Vmxnet3Details defines message 'vmxnet3_details'.

func (*Vmxnet3Details) GetCrcString

func (*Vmxnet3Details) GetCrcString() string

func (*Vmxnet3Details) GetMessageName

func (*Vmxnet3Details) GetMessageName() string

func (*Vmxnet3Details) GetMessageType

func (*Vmxnet3Details) GetMessageType() api.MessageType

func (*Vmxnet3Details) Marshal

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

func (*Vmxnet3Details) Reset

func (m *Vmxnet3Details) Reset()

func (*Vmxnet3Details) Size

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

func (*Vmxnet3Details) Unmarshal

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

type Vmxnet3Dump

type Vmxnet3Dump struct{}

Dump all vmxnet3 interfaces Vmxnet3Dump defines message 'vmxnet3_dump'. Deprecated: the message will be removed in the future versions

func (*Vmxnet3Dump) GetCrcString

func (*Vmxnet3Dump) GetCrcString() string

func (*Vmxnet3Dump) GetMessageName

func (*Vmxnet3Dump) GetMessageName() string

func (*Vmxnet3Dump) GetMessageType

func (*Vmxnet3Dump) GetMessageType() api.MessageType

func (*Vmxnet3Dump) Marshal

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

func (*Vmxnet3Dump) Reset

func (m *Vmxnet3Dump) Reset()

func (*Vmxnet3Dump) Size

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

func (*Vmxnet3Dump) Unmarshal

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

type Vmxnet3RxList

type Vmxnet3RxList struct {
	RxQsize   uint16   `binapi:"u16,name=rx_qsize" json:"rx_qsize,omitempty"`
	RxFill    []uint16 `binapi:"u16[2],name=rx_fill" json:"rx_fill,omitempty"`
	RxNext    uint16   `binapi:"u16,name=rx_next" json:"rx_next,omitempty"`
	RxProduce []uint16 `binapi:"u16[2],name=rx_produce" json:"rx_produce,omitempty"`
	RxConsume []uint16 `binapi:"u16[2],name=rx_consume" json:"rx_consume,omitempty"`
}

Vmxnet3RxList defines type 'vmxnet3_rx_list'.

type Vmxnet3TxList

type Vmxnet3TxList struct {
	TxQsize   uint16 `binapi:"u16,name=tx_qsize" json:"tx_qsize,omitempty"`
	TxNext    uint16 `binapi:"u16,name=tx_next" json:"tx_next,omitempty"`
	TxProduce uint16 `binapi:"u16,name=tx_produce" json:"tx_produce,omitempty"`
	TxConsume uint16 `binapi:"u16,name=tx_consume" json:"tx_consume,omitempty"`
}

Vmxnet3TxList defines type 'vmxnet3_tx_list'.

Jump to

Keyboard shortcuts

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