rdma

package
v3.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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
6 messages

Index

Constants

View Source
const (
	APIFile    = "rdma"
	APIVersion = "2.0.0"
	VersionCrc = 0xaece7cc3
)

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)
	RdmaCreateV2(ctx context.Context, in *RdmaCreateV2) (*RdmaCreateV2Reply, 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 RdmaCreateV2

type RdmaCreateV2 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"`
	NoMultiSeg bool     `binapi:"bool,name=no_multi_seg,default=0" json:"no_multi_seg,omitempty"`
	MaxPktlen  uint16   `binapi:"u16,name=max_pktlen,default=0" json:"max_pktlen,omitempty"`
}

RdmaCreateV2 defines message 'rdma_create_v2'.

func (*RdmaCreateV2) GetCrcString

func (*RdmaCreateV2) GetCrcString() string

func (*RdmaCreateV2) GetMessageName

func (*RdmaCreateV2) GetMessageName() string

func (*RdmaCreateV2) GetMessageType

func (*RdmaCreateV2) GetMessageType() api.MessageType

func (*RdmaCreateV2) Marshal

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

func (*RdmaCreateV2) Reset

func (m *RdmaCreateV2) Reset()

func (*RdmaCreateV2) Size

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

func (*RdmaCreateV2) Unmarshal

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

type RdmaCreateV2Reply

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

RdmaCreateV2Reply defines message 'rdma_create_v2_reply'.

func (*RdmaCreateV2Reply) GetCrcString

func (*RdmaCreateV2Reply) GetCrcString() string

func (*RdmaCreateV2Reply) GetMessageName

func (*RdmaCreateV2Reply) GetMessageName() string

func (*RdmaCreateV2Reply) GetMessageType

func (*RdmaCreateV2Reply) GetMessageType() api.MessageType

func (*RdmaCreateV2Reply) Marshal

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

func (*RdmaCreateV2Reply) Reset

func (m *RdmaCreateV2Reply) Reset()

func (*RdmaCreateV2Reply) Size

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

func (*RdmaCreateV2Reply) Unmarshal

func (m *RdmaCreateV2Reply) 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