rdma

package
v3.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Contents:

1 enum
4 messages

Index

Constants

View Source
const (
	APIFile    = "rdma"
	APIVersion = "1.0.0"
	VersionCrc = 0x8b33158c
)

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

func AllMessages() []api.Message

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

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

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

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

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

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

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

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

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

type RdmaMode

type RdmaMode uint32

RdmaMode defines enum 'rdma_mode'.

const (
	RDMA_API_MODE_AUTO RdmaMode = 0
	RDMA_API_MODE_IBV  RdmaMode = 1
	RDMA_API_MODE_DV   RdmaMode = 2
)

func (RdmaMode) String

func (x RdmaMode) String() string

Jump to

Keyboard shortcuts

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