rdma

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Contents:

3 enums
8 messages

Index

Constants

View Source
const (
	APIFile    = "rdma"
	APIVersion = "3.0.0"
	VersionCrc = 0xdab70fa9
)

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,
	}
)
View Source
var (
	RdmaRss4_name = map[uint32]string{
		0: "RDMA_API_RSS4_AUTO",
		1: "RDMA_API_RSS4_IP",
		2: "RDMA_API_RSS4_IP_UDP",
		3: "RDMA_API_RSS4_IP_TCP",
	}
	RdmaRss4_value = map[string]uint32{
		"RDMA_API_RSS4_AUTO":   0,
		"RDMA_API_RSS4_IP":     1,
		"RDMA_API_RSS4_IP_UDP": 2,
		"RDMA_API_RSS4_IP_TCP": 3,
	}
)
View Source
var (
	RdmaRss6_name = map[uint32]string{
		0: "RDMA_API_RSS6_AUTO",
		1: "RDMA_API_RSS6_IP",
		2: "RDMA_API_RSS6_IP_UDP",
		3: "RDMA_API_RSS6_IP_TCP",
	}
	RdmaRss6_value = map[string]uint32{
		"RDMA_API_RSS6_AUTO":   0,
		"RDMA_API_RSS6_IP":     1,
		"RDMA_API_RSS6_IP_UDP": 2,
		"RDMA_API_RSS6_IP_TCP": 3,
	}
)

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)
	RdmaCreateV3(ctx context.Context, in *RdmaCreateV3) (*RdmaCreateV3Reply, 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'. Deprecated: 21.01

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'. Deprecated: the message will be removed in the future versions

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 RdmaCreateV3

type RdmaCreateV3 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"`
	Rss4       RdmaRss4 `binapi:"rdma_rss4,name=rss4,default=0" json:"rss4,omitempty"`
	Rss6       RdmaRss6 `binapi:"rdma_rss6,name=rss6,default=0" json:"rss6,omitempty"`
}

RdmaCreateV3 defines message 'rdma_create_v3'.

func (*RdmaCreateV3) GetCrcString

func (*RdmaCreateV3) GetCrcString() string

func (*RdmaCreateV3) GetMessageName

func (*RdmaCreateV3) GetMessageName() string

func (*RdmaCreateV3) GetMessageType

func (*RdmaCreateV3) GetMessageType() api.MessageType

func (*RdmaCreateV3) Marshal

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

func (*RdmaCreateV3) Reset

func (m *RdmaCreateV3) Reset()

func (*RdmaCreateV3) Size

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

func (*RdmaCreateV3) Unmarshal

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

type RdmaCreateV3Reply

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

RdmaCreateV3Reply defines message 'rdma_create_v3_reply'.

func (*RdmaCreateV3Reply) GetCrcString

func (*RdmaCreateV3Reply) GetCrcString() string

func (*RdmaCreateV3Reply) GetMessageName

func (*RdmaCreateV3Reply) GetMessageName() string

func (*RdmaCreateV3Reply) GetMessageType

func (*RdmaCreateV3Reply) GetMessageType() api.MessageType

func (*RdmaCreateV3Reply) Marshal

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

func (*RdmaCreateV3Reply) Reset

func (m *RdmaCreateV3Reply) Reset()

func (*RdmaCreateV3Reply) Size

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

func (*RdmaCreateV3Reply) Unmarshal

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

type RdmaRss4

type RdmaRss4 uint32

RdmaRss4 defines enum 'rdma_rss4'.

const (
	RDMA_API_RSS4_AUTO   RdmaRss4 = 0
	RDMA_API_RSS4_IP     RdmaRss4 = 1
	RDMA_API_RSS4_IP_UDP RdmaRss4 = 2
	RDMA_API_RSS4_IP_TCP RdmaRss4 = 3
)

func (RdmaRss4) String

func (x RdmaRss4) String() string

type RdmaRss6

type RdmaRss6 uint32

RdmaRss6 defines enum 'rdma_rss6'.

const (
	RDMA_API_RSS6_AUTO   RdmaRss6 = 0
	RDMA_API_RSS6_IP     RdmaRss6 = 1
	RDMA_API_RSS6_IP_UDP RdmaRss6 = 2
	RDMA_API_RSS6_IP_TCP RdmaRss6 = 3
)

func (RdmaRss6) String

func (x RdmaRss6) String() string

Jump to

Keyboard shortcuts

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