Documentation ¶
Overview ¶
Package idpf contains generated bindings for API file idpf.api.
Contents: - 4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type IdpfCreate
- func (*IdpfCreate) GetCrcString() string
- func (*IdpfCreate) GetMessageName() string
- func (*IdpfCreate) GetMessageType() api.MessageType
- func (m *IdpfCreate) Marshal(b []byte) ([]byte, error)
- func (m *IdpfCreate) Reset()
- func (m *IdpfCreate) Size() (size int)
- func (m *IdpfCreate) Unmarshal(b []byte) error
- type IdpfCreateReply
- func (*IdpfCreateReply) GetCrcString() string
- func (*IdpfCreateReply) GetMessageName() string
- func (*IdpfCreateReply) GetMessageType() api.MessageType
- func (m *IdpfCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *IdpfCreateReply) Reset()
- func (m *IdpfCreateReply) Size() (size int)
- func (m *IdpfCreateReply) Unmarshal(b []byte) error
- type IdpfDelete
- func (*IdpfDelete) GetCrcString() string
- func (*IdpfDelete) GetMessageName() string
- func (*IdpfDelete) GetMessageType() api.MessageType
- func (m *IdpfDelete) Marshal(b []byte) ([]byte, error)
- func (m *IdpfDelete) Reset()
- func (m *IdpfDelete) Size() (size int)
- func (m *IdpfDelete) Unmarshal(b []byte) error
- type IdpfDeleteReply
- func (*IdpfDeleteReply) GetCrcString() string
- func (*IdpfDeleteReply) GetMessageName() string
- func (*IdpfDeleteReply) GetMessageType() api.MessageType
- func (m *IdpfDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *IdpfDeleteReply) Reset()
- func (m *IdpfDeleteReply) Size() (size int)
- func (m *IdpfDeleteReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "idpf" APIVersion = "1.0.0" VersionCrc = 0x48384ea8 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type IdpfCreate ¶
type IdpfCreate struct { PciAddr uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"` RxqSingle uint16 `binapi:"u16,name=rxq_single" json:"rxq_single,omitempty"` TxqSingle uint16 `binapi:"u16,name=txq_single" json:"txq_single,omitempty"` RxqNum uint16 `binapi:"u16,name=rxq_num" json:"rxq_num,omitempty"` TxqNum uint16 `binapi:"u16,name=txq_num" json:"txq_num,omitempty"` RxqSize uint16 `binapi:"u16,name=rxq_size" json:"rxq_size,omitempty"` TxqSize uint16 `binapi:"u16,name=txq_size" json:"txq_size,omitempty"` ReqVportNb uint16 `binapi:"u16,name=req_vport_nb" json:"req_vport_nb,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
- rxq_num - number of receive queues
- rxq_size - receive queue size
- txq_size - transmit queue size
IdpfCreate defines message 'idpf_create'.
func (*IdpfCreate) GetCrcString ¶
func (*IdpfCreate) GetCrcString() string
func (*IdpfCreate) GetMessageName ¶
func (*IdpfCreate) GetMessageName() string
func (*IdpfCreate) GetMessageType ¶
func (*IdpfCreate) GetMessageType() api.MessageType
func (*IdpfCreate) Reset ¶
func (m *IdpfCreate) Reset()
func (*IdpfCreate) Size ¶
func (m *IdpfCreate) Size() (size int)
func (*IdpfCreate) Unmarshal ¶
func (m *IdpfCreate) Unmarshal(b []byte) error
type IdpfCreateReply ¶
type IdpfCreateReply 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 idpf interface
IdpfCreateReply defines message 'idpf_create_reply'.
func (*IdpfCreateReply) GetCrcString ¶
func (*IdpfCreateReply) GetCrcString() string
func (*IdpfCreateReply) GetMessageName ¶
func (*IdpfCreateReply) GetMessageName() string
func (*IdpfCreateReply) GetMessageType ¶
func (*IdpfCreateReply) GetMessageType() api.MessageType
func (*IdpfCreateReply) Reset ¶
func (m *IdpfCreateReply) Reset()
func (*IdpfCreateReply) Size ¶
func (m *IdpfCreateReply) Size() (size int)
func (*IdpfCreateReply) Unmarshal ¶
func (m *IdpfCreateReply) Unmarshal(b []byte) error
type IdpfDelete ¶
type IdpfDelete 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
IdpfDelete defines message 'idpf_delete'.
func (*IdpfDelete) GetCrcString ¶
func (*IdpfDelete) GetCrcString() string
func (*IdpfDelete) GetMessageName ¶
func (*IdpfDelete) GetMessageName() string
func (*IdpfDelete) GetMessageType ¶
func (*IdpfDelete) GetMessageType() api.MessageType
func (*IdpfDelete) Reset ¶
func (m *IdpfDelete) Reset()
func (*IdpfDelete) Size ¶
func (m *IdpfDelete) Size() (size int)
func (*IdpfDelete) Unmarshal ¶
func (m *IdpfDelete) Unmarshal(b []byte) error
type IdpfDeleteReply ¶
type IdpfDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
IdpfDeleteReply defines message 'idpf_delete_reply'.
func (*IdpfDeleteReply) GetCrcString ¶
func (*IdpfDeleteReply) GetCrcString() string
func (*IdpfDeleteReply) GetMessageName ¶
func (*IdpfDeleteReply) GetMessageName() string
func (*IdpfDeleteReply) GetMessageType ¶
func (*IdpfDeleteReply) GetMessageType() api.MessageType
func (*IdpfDeleteReply) Reset ¶
func (m *IdpfDeleteReply) Reset()
func (*IdpfDeleteReply) Size ¶
func (m *IdpfDeleteReply) Size() (size int)
func (*IdpfDeleteReply) Unmarshal ¶
func (m *IdpfDeleteReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { IdpfCreate(ctx context.Context, in *IdpfCreate) (*IdpfCreateReply, error) IdpfDelete(ctx context.Context, in *IdpfDelete) (*IdpfDeleteReply, error) }
RPCService defines RPC service idpf.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.