Documentation ¶
Overview ¶
Package rdma contains generated bindings for API file rdma.api.
Contents:
1 enum 4 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RdmaCreate
- func (*RdmaCreate) GetCrcString() string
- func (*RdmaCreate) GetMessageName() string
- func (*RdmaCreate) GetMessageType() api.MessageType
- func (m *RdmaCreate) Marshal(b []byte) ([]byte, error)
- func (m *RdmaCreate) Reset()
- func (m *RdmaCreate) Size() (size int)
- func (m *RdmaCreate) Unmarshal(b []byte) error
- type RdmaCreateReply
- func (*RdmaCreateReply) GetCrcString() string
- func (*RdmaCreateReply) GetMessageName() string
- func (*RdmaCreateReply) GetMessageType() api.MessageType
- func (m *RdmaCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *RdmaCreateReply) Reset()
- func (m *RdmaCreateReply) Size() (size int)
- func (m *RdmaCreateReply) Unmarshal(b []byte) error
- type RdmaDelete
- func (*RdmaDelete) GetCrcString() string
- func (*RdmaDelete) GetMessageName() string
- func (*RdmaDelete) GetMessageType() api.MessageType
- func (m *RdmaDelete) Marshal(b []byte) ([]byte, error)
- func (m *RdmaDelete) Reset()
- func (m *RdmaDelete) Size() (size int)
- func (m *RdmaDelete) Unmarshal(b []byte) error
- type RdmaDeleteReply
- func (*RdmaDeleteReply) GetCrcString() string
- func (*RdmaDeleteReply) GetMessageName() string
- func (*RdmaDeleteReply) GetMessageType() api.MessageType
- func (m *RdmaDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *RdmaDeleteReply) Reset()
- func (m *RdmaDeleteReply) Size() (size int)
- func (m *RdmaDeleteReply) Unmarshal(b []byte) error
- type RdmaMode
Constants ¶
View Source
const ( APIFile = "rdma" APIVersion = "1.0.0" VersionCrc = 0xc5b808b2 )
Variables ¶
View Source
var ( RdmaMode_name = map[uint32]string{ 0: "RDMA_API_MODE_AUTO", 1: "RDMA_API_MODE_IBV", 2: "RDMA_API_MODE_DV", } RdmaMode_value = map[string]uint32{ "RDMA_API_MODE_AUTO": 0, "RDMA_API_MODE_IBV": 1, "RDMA_API_MODE_DV": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { RdmaCreate(ctx context.Context, in *RdmaCreate) (*RdmaCreateReply, error) RdmaDelete(ctx context.Context, in *RdmaDelete) (*RdmaDeleteReply, error) }
RPCService defines RPC service rdma.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RdmaCreate ¶
type RdmaCreate struct { HostIf string `binapi:"string[64],name=host_if" json:"host_if,omitempty"` Name string `binapi:"string[64],name=name" json:"name,omitempty"` RxqNum uint16 `binapi:"u16,name=rxq_num,default=1" json:"rxq_num,omitempty"` RxqSize uint16 `binapi:"u16,name=rxq_size,default=1024" json:"rxq_size,omitempty"` TxqSize uint16 `binapi:"u16,name=txq_size,default=1024" json:"txq_size,omitempty"` Mode RdmaMode `binapi:"rdma_mode,name=mode,default=0" json:"mode,omitempty"` }
RdmaCreate defines message 'rdma_create'.
func (*RdmaCreate) GetCrcString ¶
func (*RdmaCreate) GetCrcString() string
func (*RdmaCreate) GetMessageName ¶
func (*RdmaCreate) GetMessageName() string
func (*RdmaCreate) GetMessageType ¶
func (*RdmaCreate) GetMessageType() api.MessageType
func (*RdmaCreate) Reset ¶
func (m *RdmaCreate) Reset()
func (*RdmaCreate) Size ¶
func (m *RdmaCreate) Size() (size int)
func (*RdmaCreate) Unmarshal ¶
func (m *RdmaCreate) Unmarshal(b []byte) error
type RdmaCreateReply ¶
type RdmaCreateReply 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"` }
RdmaCreateReply defines message 'rdma_create_reply'.
func (*RdmaCreateReply) GetCrcString ¶
func (*RdmaCreateReply) GetCrcString() string
func (*RdmaCreateReply) GetMessageName ¶
func (*RdmaCreateReply) GetMessageName() string
func (*RdmaCreateReply) GetMessageType ¶
func (*RdmaCreateReply) GetMessageType() api.MessageType
func (*RdmaCreateReply) Reset ¶
func (m *RdmaCreateReply) Reset()
func (*RdmaCreateReply) Size ¶
func (m *RdmaCreateReply) Size() (size int)
func (*RdmaCreateReply) Unmarshal ¶
func (m *RdmaCreateReply) Unmarshal(b []byte) error
type RdmaDelete ¶
type RdmaDelete struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
RdmaDelete defines message 'rdma_delete'.
func (*RdmaDelete) GetCrcString ¶
func (*RdmaDelete) GetCrcString() string
func (*RdmaDelete) GetMessageName ¶
func (*RdmaDelete) GetMessageName() string
func (*RdmaDelete) GetMessageType ¶
func (*RdmaDelete) GetMessageType() api.MessageType
func (*RdmaDelete) Reset ¶
func (m *RdmaDelete) Reset()
func (*RdmaDelete) Size ¶
func (m *RdmaDelete) Size() (size int)
func (*RdmaDelete) Unmarshal ¶
func (m *RdmaDelete) Unmarshal(b []byte) error
type RdmaDeleteReply ¶
type RdmaDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
RdmaDeleteReply defines message 'rdma_delete_reply'.
func (*RdmaDeleteReply) GetCrcString ¶
func (*RdmaDeleteReply) GetCrcString() string
func (*RdmaDeleteReply) GetMessageName ¶
func (*RdmaDeleteReply) GetMessageName() string
func (*RdmaDeleteReply) GetMessageType ¶
func (*RdmaDeleteReply) GetMessageType() api.MessageType
func (*RdmaDeleteReply) Reset ¶
func (m *RdmaDeleteReply) Reset()
func (*RdmaDeleteReply) Size ¶
func (m *RdmaDeleteReply) Size() (size int)
func (*RdmaDeleteReply) Unmarshal ¶
func (m *RdmaDeleteReply) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.