Documentation
¶
Overview ¶
Package vhost_user contains generated bindings for API file vhost_user.api.
Contents:
2 aliases 8 enums 8 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type CreateVhostUserIf
- func (*CreateVhostUserIf) GetCrcString() string
- func (*CreateVhostUserIf) GetMessageName() string
- func (*CreateVhostUserIf) GetMessageType() api.MessageType
- func (m *CreateVhostUserIf) Marshal(b []byte) ([]byte, error)
- func (m *CreateVhostUserIf) Reset()
- func (m *CreateVhostUserIf) Size() (size int)
- func (m *CreateVhostUserIf) Unmarshal(b []byte) error
- type CreateVhostUserIfReply
- func (*CreateVhostUserIfReply) GetCrcString() string
- func (*CreateVhostUserIfReply) GetMessageName() string
- func (*CreateVhostUserIfReply) GetMessageType() api.MessageType
- func (m *CreateVhostUserIfReply) Marshal(b []byte) ([]byte, error)
- func (m *CreateVhostUserIfReply) Reset()
- func (m *CreateVhostUserIfReply) Size() (size int)
- func (m *CreateVhostUserIfReply) Unmarshal(b []byte) error
- type DeleteVhostUserIf
- func (*DeleteVhostUserIf) GetCrcString() string
- func (*DeleteVhostUserIf) GetMessageName() string
- func (*DeleteVhostUserIf) GetMessageType() api.MessageType
- func (m *DeleteVhostUserIf) Marshal(b []byte) ([]byte, error)
- func (m *DeleteVhostUserIf) Reset()
- func (m *DeleteVhostUserIf) Size() (size int)
- func (m *DeleteVhostUserIf) Unmarshal(b []byte) error
- type DeleteVhostUserIfReply
- func (*DeleteVhostUserIfReply) GetCrcString() string
- func (*DeleteVhostUserIfReply) GetMessageName() string
- func (*DeleteVhostUserIfReply) GetMessageType() api.MessageType
- func (m *DeleteVhostUserIfReply) Marshal(b []byte) ([]byte, error)
- func (m *DeleteVhostUserIfReply) Reset()
- func (m *DeleteVhostUserIfReply) Size() (size int)
- func (m *DeleteVhostUserIfReply) Unmarshal(b []byte) error
- type IfStatusFlags
- type IfType
- type InterfaceIndex
- type LinkDuplex
- type MacAddress
- type ModifyVhostUserIf
- func (*ModifyVhostUserIf) GetCrcString() string
- func (*ModifyVhostUserIf) GetMessageName() string
- func (*ModifyVhostUserIf) GetMessageType() api.MessageType
- func (m *ModifyVhostUserIf) Marshal(b []byte) ([]byte, error)
- func (m *ModifyVhostUserIf) Reset()
- func (m *ModifyVhostUserIf) Size() (size int)
- func (m *ModifyVhostUserIf) Unmarshal(b []byte) error
- type ModifyVhostUserIfReply
- func (*ModifyVhostUserIfReply) GetCrcString() string
- func (*ModifyVhostUserIfReply) GetMessageName() string
- func (*ModifyVhostUserIfReply) GetMessageType() api.MessageType
- func (m *ModifyVhostUserIfReply) Marshal(b []byte) ([]byte, error)
- func (m *ModifyVhostUserIfReply) Reset()
- func (m *ModifyVhostUserIfReply) Size() (size int)
- func (m *ModifyVhostUserIfReply) Unmarshal(b []byte) error
- type MtuProto
- type RPCService
- type RPCService_SwInterfaceVhostUserDumpClient
- type RxMode
- type SubIfFlags
- type SwInterfaceVhostUserDetails
- func (*SwInterfaceVhostUserDetails) GetCrcString() string
- func (*SwInterfaceVhostUserDetails) GetMessageName() string
- func (*SwInterfaceVhostUserDetails) GetMessageType() api.MessageType
- func (m *SwInterfaceVhostUserDetails) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceVhostUserDetails) Reset()
- func (m *SwInterfaceVhostUserDetails) Size() (size int)
- func (m *SwInterfaceVhostUserDetails) Unmarshal(b []byte) error
- type SwInterfaceVhostUserDump
- func (*SwInterfaceVhostUserDump) GetCrcString() string
- func (*SwInterfaceVhostUserDump) GetMessageName() string
- func (*SwInterfaceVhostUserDump) GetMessageType() api.MessageType
- func (m *SwInterfaceVhostUserDump) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceVhostUserDump) Reset()
- func (m *SwInterfaceVhostUserDump) Size() (size int)
- func (m *SwInterfaceVhostUserDump) Unmarshal(b []byte) error
- type VirtioNetFeaturesFirst32
- type VirtioNetFeaturesLast32
Constants ¶
const ( APIFile = "vhost_user" APIVersion = "4.0.0" VersionCrc = 0xb547a33d )
Variables ¶
var ( IfStatusFlags_name = map[uint32]string{ 1: "IF_STATUS_API_FLAG_ADMIN_UP", 2: "IF_STATUS_API_FLAG_LINK_UP", } IfStatusFlags_value = map[string]uint32{ "IF_STATUS_API_FLAG_ADMIN_UP": 1, "IF_STATUS_API_FLAG_LINK_UP": 2, } )
var ( IfType_name = map[uint32]string{ 1: "IF_API_TYPE_HARDWARE", 2: "IF_API_TYPE_SUB", 3: "IF_API_TYPE_P2P", 4: "IF_API_TYPE_PIPE", } IfType_value = map[string]uint32{ "IF_API_TYPE_HARDWARE": 1, "IF_API_TYPE_SUB": 2, "IF_API_TYPE_P2P": 3, "IF_API_TYPE_PIPE": 4, } )
var ( LinkDuplex_name = map[uint32]string{ 0: "LINK_DUPLEX_API_UNKNOWN", 1: "LINK_DUPLEX_API_HALF", 2: "LINK_DUPLEX_API_FULL", } LinkDuplex_value = map[string]uint32{ "LINK_DUPLEX_API_UNKNOWN": 0, "LINK_DUPLEX_API_HALF": 1, "LINK_DUPLEX_API_FULL": 2, } )
var ( MtuProto_name = map[uint32]string{ 1: "MTU_PROTO_API_L3", 2: "MTU_PROTO_API_IP4", 3: "MTU_PROTO_API_IP6", 4: "MTU_PROTO_API_MPLS", 5: "MTU_PROTO_API_N", } MtuProto_value = map[string]uint32{ "MTU_PROTO_API_L3": 1, "MTU_PROTO_API_IP4": 2, "MTU_PROTO_API_IP6": 3, "MTU_PROTO_API_MPLS": 4, "MTU_PROTO_API_N": 5, } )
var ( RxMode_name = map[uint32]string{ 0: "RX_MODE_API_UNKNOWN", 1: "RX_MODE_API_POLLING", 2: "RX_MODE_API_INTERRUPT", 3: "RX_MODE_API_ADAPTIVE", 4: "RX_MODE_API_DEFAULT", } RxMode_value = map[string]uint32{ "RX_MODE_API_UNKNOWN": 0, "RX_MODE_API_POLLING": 1, "RX_MODE_API_INTERRUPT": 2, "RX_MODE_API_ADAPTIVE": 3, "RX_MODE_API_DEFAULT": 4, } )
var ( SubIfFlags_name = map[uint32]string{ 1: "SUB_IF_API_FLAG_NO_TAGS", 2: "SUB_IF_API_FLAG_ONE_TAG", 4: "SUB_IF_API_FLAG_TWO_TAGS", 8: "SUB_IF_API_FLAG_DOT1AD", 16: "SUB_IF_API_FLAG_EXACT_MATCH", 32: "SUB_IF_API_FLAG_DEFAULT", 64: "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY", 128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY", 254: "SUB_IF_API_FLAG_MASK_VNET", 256: "SUB_IF_API_FLAG_DOT1AH", } SubIfFlags_value = map[string]uint32{ "SUB_IF_API_FLAG_NO_TAGS": 1, "SUB_IF_API_FLAG_ONE_TAG": 2, "SUB_IF_API_FLAG_TWO_TAGS": 4, "SUB_IF_API_FLAG_DOT1AD": 8, "SUB_IF_API_FLAG_EXACT_MATCH": 16, "SUB_IF_API_FLAG_DEFAULT": 32, "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64, "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128, "SUB_IF_API_FLAG_MASK_VNET": 254, "SUB_IF_API_FLAG_DOT1AH": 256, } )
var ( VirtioNetFeaturesFirst32_name = map[uint32]string{ 1: "VIRTIO_NET_F_API_CSUM", 2: "VIRTIO_NET_F_API_GUEST_CSUM", 128: "VIRTIO_NET_F_API_GUEST_TSO4", 256: "VIRTIO_NET_F_API_GUEST_TSO6", 1024: "VIRTIO_NET_F_API_GUEST_UFO", 2048: "VIRTIO_NET_F_API_HOST_TSO4", 4096: "VIRTIO_NET_F_API_HOST_TSO6", 16384: "VIRTIO_NET_F_API_HOST_UFO", 32768: "VIRTIO_NET_F_API_MRG_RXBUF", 131072: "VIRTIO_NET_F_API_CTRL_VQ", 2097152: "VIRTIO_NET_F_API_GUEST_ANNOUNCE", 4194304: "VIRTIO_NET_F_API_MQ", 67108864: "VHOST_F_API_LOG_ALL", 134217728: "VIRTIO_F_API_ANY_LAYOUT", 268435456: "VIRTIO_F_API_INDIRECT_DESC", 1073741824: "VHOST_USER_F_API_PROTOCOL_FEATURES", } VirtioNetFeaturesFirst32_value = map[string]uint32{ "VIRTIO_NET_F_API_CSUM": 1, "VIRTIO_NET_F_API_GUEST_CSUM": 2, "VIRTIO_NET_F_API_GUEST_TSO4": 128, "VIRTIO_NET_F_API_GUEST_TSO6": 256, "VIRTIO_NET_F_API_GUEST_UFO": 1024, "VIRTIO_NET_F_API_HOST_TSO4": 2048, "VIRTIO_NET_F_API_HOST_TSO6": 4096, "VIRTIO_NET_F_API_HOST_UFO": 16384, "VIRTIO_NET_F_API_MRG_RXBUF": 32768, "VIRTIO_NET_F_API_CTRL_VQ": 131072, "VIRTIO_NET_F_API_GUEST_ANNOUNCE": 2097152, "VIRTIO_NET_F_API_MQ": 4194304, "VHOST_F_API_LOG_ALL": 67108864, "VIRTIO_F_API_ANY_LAYOUT": 134217728, "VIRTIO_F_API_INDIRECT_DESC": 268435456, "VHOST_USER_F_API_PROTOCOL_FEATURES": 1073741824, } )
var ( VirtioNetFeaturesLast32_name = map[uint32]string{ 1: "VIRTIO_F_API_VERSION_1", } VirtioNetFeaturesLast32_value = map[string]uint32{ "VIRTIO_F_API_VERSION_1": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type CreateVhostUserIf ¶
type CreateVhostUserIf struct { IsServer bool `binapi:"bool,name=is_server" json:"is_server,omitempty"` SockFilename string `binapi:"string[256],name=sock_filename" json:"sock_filename,omitempty"` Renumber bool `binapi:"bool,name=renumber" json:"renumber,omitempty"` DisableMrgRxbuf bool `binapi:"bool,name=disable_mrg_rxbuf" json:"disable_mrg_rxbuf,omitempty"` DisableIndirectDesc bool `binapi:"bool,name=disable_indirect_desc" json:"disable_indirect_desc,omitempty"` EnableGso bool `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"` CustomDevInstance uint32 `binapi:"u32,name=custom_dev_instance" json:"custom_dev_instance,omitempty"` UseCustomMac bool `binapi:"bool,name=use_custom_mac" json:"use_custom_mac,omitempty"` MacAddress MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"` Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"` }
CreateVhostUserIf defines 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()
func (*CreateVhostUserIf) Size ¶
func (m *CreateVhostUserIf) Size() (size int)
func (*CreateVhostUserIf) Unmarshal ¶
func (m *CreateVhostUserIf) Unmarshal(b []byte) error
type CreateVhostUserIfReply ¶
type CreateVhostUserIfReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
CreateVhostUserIfReply defines 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) Marshal ¶
func (m *CreateVhostUserIfReply) Marshal(b []byte) ([]byte, error)
func (*CreateVhostUserIfReply) Reset ¶
func (m *CreateVhostUserIfReply) Reset()
func (*CreateVhostUserIfReply) Size ¶
func (m *CreateVhostUserIfReply) Size() (size int)
func (*CreateVhostUserIfReply) Unmarshal ¶
func (m *CreateVhostUserIfReply) Unmarshal(b []byte) error
type DeleteVhostUserIf ¶
type DeleteVhostUserIf struct {
SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
DeleteVhostUserIf defines 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()
func (*DeleteVhostUserIf) Size ¶
func (m *DeleteVhostUserIf) Size() (size int)
func (*DeleteVhostUserIf) Unmarshal ¶
func (m *DeleteVhostUserIf) Unmarshal(b []byte) error
type DeleteVhostUserIfReply ¶
type DeleteVhostUserIfReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
DeleteVhostUserIfReply defines 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) Marshal ¶
func (m *DeleteVhostUserIfReply) Marshal(b []byte) ([]byte, error)
func (*DeleteVhostUserIfReply) Reset ¶
func (m *DeleteVhostUserIfReply) Reset()
func (*DeleteVhostUserIfReply) Size ¶
func (m *DeleteVhostUserIfReply) Size() (size int)
func (*DeleteVhostUserIfReply) Unmarshal ¶
func (m *DeleteVhostUserIfReply) Unmarshal(b []byte) error
type IfStatusFlags ¶
type IfStatusFlags uint32
IfStatusFlags defines enum 'if_status_flags'.
const ( IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 )
func (IfStatusFlags) String ¶
func (x IfStatusFlags) String() string
type LinkDuplex ¶
type LinkDuplex uint32
LinkDuplex defines enum 'link_duplex'.
const ( LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0 LINK_DUPLEX_API_HALF LinkDuplex = 1 LINK_DUPLEX_API_FULL LinkDuplex = 2 )
func (LinkDuplex) String ¶
func (x LinkDuplex) String() string
type MacAddress ¶
type MacAddress [6]uint8
MacAddress defines alias 'mac_address'.
func ParseMacAddress ¶
func ParseMacAddress(s string) (MacAddress, error)
func (*MacAddress) MarshalText ¶
func (x *MacAddress) MarshalText() ([]byte, error)
func (MacAddress) String ¶
func (x MacAddress) String() string
func (MacAddress) ToMAC ¶
func (x MacAddress) ToMAC() net.HardwareAddr
func (*MacAddress) UnmarshalText ¶
func (x *MacAddress) UnmarshalText(text []byte) error
type ModifyVhostUserIf ¶
type ModifyVhostUserIf struct { SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsServer bool `binapi:"bool,name=is_server" json:"is_server,omitempty"` SockFilename string `binapi:"string[256],name=sock_filename" json:"sock_filename,omitempty"` Renumber bool `binapi:"bool,name=renumber" json:"renumber,omitempty"` EnableGso bool `binapi:"bool,name=enable_gso" json:"enable_gso,omitempty"` CustomDevInstance uint32 `binapi:"u32,name=custom_dev_instance" json:"custom_dev_instance,omitempty"` }
ModifyVhostUserIf defines 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()
func (*ModifyVhostUserIf) Size ¶
func (m *ModifyVhostUserIf) Size() (size int)
func (*ModifyVhostUserIf) Unmarshal ¶
func (m *ModifyVhostUserIf) Unmarshal(b []byte) error
type ModifyVhostUserIfReply ¶
type ModifyVhostUserIfReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
ModifyVhostUserIfReply defines 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) Marshal ¶
func (m *ModifyVhostUserIfReply) Marshal(b []byte) ([]byte, error)
func (*ModifyVhostUserIfReply) Reset ¶
func (m *ModifyVhostUserIfReply) Reset()
func (*ModifyVhostUserIfReply) Size ¶
func (m *ModifyVhostUserIfReply) Size() (size int)
func (*ModifyVhostUserIfReply) Unmarshal ¶
func (m *ModifyVhostUserIfReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { CreateVhostUserIf(ctx context.Context, in *CreateVhostUserIf) (*CreateVhostUserIfReply, error) DeleteVhostUserIf(ctx context.Context, in *DeleteVhostUserIf) (*DeleteVhostUserIfReply, error) ModifyVhostUserIf(ctx context.Context, in *ModifyVhostUserIf) (*ModifyVhostUserIfReply, error) SwInterfaceVhostUserDump(ctx context.Context, in *SwInterfaceVhostUserDump) (RPCService_SwInterfaceVhostUserDumpClient, error) }
RPCService defines RPC service vhost_user.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_SwInterfaceVhostUserDumpClient ¶
type RPCService_SwInterfaceVhostUserDumpClient interface { Recv() (*SwInterfaceVhostUserDetails, error) api.Stream }
type SubIfFlags ¶
type SubIfFlags uint32
SubIfFlags defines enum 'sub_if_flags'.
const ( SUB_IF_API_FLAG_NO_TAGS SubIfFlags = 1 SUB_IF_API_FLAG_ONE_TAG SubIfFlags = 2 SUB_IF_API_FLAG_TWO_TAGS SubIfFlags = 4 SUB_IF_API_FLAG_DOT1AD SubIfFlags = 8 SUB_IF_API_FLAG_EXACT_MATCH SubIfFlags = 16 SUB_IF_API_FLAG_DEFAULT SubIfFlags = 32 SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64 SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128 SUB_IF_API_FLAG_MASK_VNET SubIfFlags = 254 SUB_IF_API_FLAG_DOT1AH SubIfFlags = 256 )
func (SubIfFlags) String ¶
func (x SubIfFlags) String() string
type SwInterfaceVhostUserDetails ¶
type SwInterfaceVhostUserDetails struct { SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` InterfaceName string `binapi:"string[64],name=interface_name" json:"interface_name,omitempty"` VirtioNetHdrSz uint32 `binapi:"u32,name=virtio_net_hdr_sz" json:"virtio_net_hdr_sz,omitempty"` FeaturesFirst32 VirtioNetFeaturesFirst32 `binapi:"virtio_net_features_first_32,name=features_first_32" json:"features_first_32,omitempty"` FeaturesLast32 VirtioNetFeaturesLast32 `binapi:"virtio_net_features_last_32,name=features_last_32" json:"features_last_32,omitempty"` IsServer bool `binapi:"bool,name=is_server" json:"is_server,omitempty"` SockFilename string `binapi:"string[256],name=sock_filename" json:"sock_filename,omitempty"` NumRegions uint32 `binapi:"u32,name=num_regions" json:"num_regions,omitempty"` SockErrno int32 `binapi:"i32,name=sock_errno" json:"sock_errno,omitempty"` }
SwInterfaceVhostUserDetails defines 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) Marshal ¶
func (m *SwInterfaceVhostUserDetails) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceVhostUserDetails) Reset ¶
func (m *SwInterfaceVhostUserDetails) Reset()
func (*SwInterfaceVhostUserDetails) Size ¶
func (m *SwInterfaceVhostUserDetails) Size() (size int)
func (*SwInterfaceVhostUserDetails) Unmarshal ¶
func (m *SwInterfaceVhostUserDetails) Unmarshal(b []byte) error
type SwInterfaceVhostUserDump ¶
type SwInterfaceVhostUserDump struct {
SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}
SwInterfaceVhostUserDump defines 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) Marshal ¶
func (m *SwInterfaceVhostUserDump) Marshal(b []byte) ([]byte, error)
func (*SwInterfaceVhostUserDump) Reset ¶
func (m *SwInterfaceVhostUserDump) Reset()
func (*SwInterfaceVhostUserDump) Size ¶
func (m *SwInterfaceVhostUserDump) Size() (size int)
func (*SwInterfaceVhostUserDump) Unmarshal ¶
func (m *SwInterfaceVhostUserDump) Unmarshal(b []byte) error
type VirtioNetFeaturesFirst32 ¶
type VirtioNetFeaturesFirst32 uint32
VirtioNetFeaturesFirst32 defines enum 'virtio_net_features_first_32'.
const ( VIRTIO_NET_F_API_CSUM VirtioNetFeaturesFirst32 = 1 VIRTIO_NET_F_API_GUEST_CSUM VirtioNetFeaturesFirst32 = 2 VIRTIO_NET_F_API_GUEST_TSO4 VirtioNetFeaturesFirst32 = 128 VIRTIO_NET_F_API_GUEST_TSO6 VirtioNetFeaturesFirst32 = 256 VIRTIO_NET_F_API_GUEST_UFO VirtioNetFeaturesFirst32 = 1024 VIRTIO_NET_F_API_HOST_TSO4 VirtioNetFeaturesFirst32 = 2048 VIRTIO_NET_F_API_HOST_TSO6 VirtioNetFeaturesFirst32 = 4096 VIRTIO_NET_F_API_HOST_UFO VirtioNetFeaturesFirst32 = 16384 VIRTIO_NET_F_API_MRG_RXBUF VirtioNetFeaturesFirst32 = 32768 VIRTIO_NET_F_API_CTRL_VQ VirtioNetFeaturesFirst32 = 131072 VIRTIO_NET_F_API_GUEST_ANNOUNCE VirtioNetFeaturesFirst32 = 2097152 VIRTIO_NET_F_API_MQ VirtioNetFeaturesFirst32 = 4194304 VHOST_F_API_LOG_ALL VirtioNetFeaturesFirst32 = 67108864 VIRTIO_F_API_ANY_LAYOUT VirtioNetFeaturesFirst32 = 134217728 VIRTIO_F_API_INDIRECT_DESC VirtioNetFeaturesFirst32 = 268435456 VHOST_USER_F_API_PROTOCOL_FEATURES VirtioNetFeaturesFirst32 = 1073741824 )
func (VirtioNetFeaturesFirst32) String ¶
func (x VirtioNetFeaturesFirst32) String() string
type VirtioNetFeaturesLast32 ¶
type VirtioNetFeaturesLast32 uint32
VirtioNetFeaturesLast32 defines enum 'virtio_net_features_last_32'.
const (
VIRTIO_F_API_VERSION_1 VirtioNetFeaturesLast32 = 1
)
func (VirtioNetFeaturesLast32) String ¶
func (x VirtioNetFeaturesLast32) String() string