Documentation ¶
Overview ¶
Package af_xdp contains generated bindings for API file af_xdp.api.
Contents:
2 enums 6 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type AfXdpCreate
- func (*AfXdpCreate) GetCrcString() string
- func (*AfXdpCreate) GetMessageName() string
- func (*AfXdpCreate) GetMessageType() api.MessageType
- func (m *AfXdpCreate) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpCreate) Reset()
- func (m *AfXdpCreate) Size() (size int)
- func (m *AfXdpCreate) Unmarshal(b []byte) error
- type AfXdpCreateReply
- func (*AfXdpCreateReply) GetCrcString() string
- func (*AfXdpCreateReply) GetMessageName() string
- func (*AfXdpCreateReply) GetMessageType() api.MessageType
- func (m *AfXdpCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpCreateReply) Reset()
- func (m *AfXdpCreateReply) Size() (size int)
- func (m *AfXdpCreateReply) Unmarshal(b []byte) error
- type AfXdpCreateV2
- func (*AfXdpCreateV2) GetCrcString() string
- func (*AfXdpCreateV2) GetMessageName() string
- func (*AfXdpCreateV2) GetMessageType() api.MessageType
- func (m *AfXdpCreateV2) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpCreateV2) Reset()
- func (m *AfXdpCreateV2) Size() (size int)
- func (m *AfXdpCreateV2) Unmarshal(b []byte) error
- type AfXdpCreateV2Reply
- func (*AfXdpCreateV2Reply) GetCrcString() string
- func (*AfXdpCreateV2Reply) GetMessageName() string
- func (*AfXdpCreateV2Reply) GetMessageType() api.MessageType
- func (m *AfXdpCreateV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpCreateV2Reply) Reset()
- func (m *AfXdpCreateV2Reply) Size() (size int)
- func (m *AfXdpCreateV2Reply) Unmarshal(b []byte) error
- type AfXdpDelete
- func (*AfXdpDelete) GetCrcString() string
- func (*AfXdpDelete) GetMessageName() string
- func (*AfXdpDelete) GetMessageType() api.MessageType
- func (m *AfXdpDelete) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpDelete) Reset()
- func (m *AfXdpDelete) Size() (size int)
- func (m *AfXdpDelete) Unmarshal(b []byte) error
- type AfXdpDeleteReply
- func (*AfXdpDeleteReply) GetCrcString() string
- func (*AfXdpDeleteReply) GetMessageName() string
- func (*AfXdpDeleteReply) GetMessageType() api.MessageType
- func (m *AfXdpDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *AfXdpDeleteReply) Reset()
- func (m *AfXdpDeleteReply) Size() (size int)
- func (m *AfXdpDeleteReply) Unmarshal(b []byte) error
- type AfXdpFlag
- type AfXdpMode
- type RPCService
Constants ¶
View Source
const ( APIFile = "af_xdp" APIVersion = "1.0.0" VersionCrc = 0x346626ce )
Variables ¶
View Source
var ( AfXdpMode_name = map[uint32]string{ 0: "AF_XDP_API_MODE_AUTO", 1: "AF_XDP_API_MODE_COPY", 2: "AF_XDP_API_MODE_ZERO_COPY", } AfXdpMode_value = map[string]uint32{ "AF_XDP_API_MODE_AUTO": 0, "AF_XDP_API_MODE_COPY": 1, "AF_XDP_API_MODE_ZERO_COPY": 2, } )
View Source
var ( AfXdpFlag_name = map[uint8]string{ 1: "AF_XDP_API_FLAGS_NO_SYSCALL_LOCK", } AfXdpFlag_value = map[string]uint8{ "AF_XDP_API_FLAGS_NO_SYSCALL_LOCK": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type AfXdpCreate ¶
type AfXdpCreate 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=0" json:"rxq_size,omitempty"` TxqSize uint16 `binapi:"u16,name=txq_size,default=0" json:"txq_size,omitempty"` Mode AfXdpMode `binapi:"af_xdp_mode,name=mode,default=0" json:"mode,omitempty"` Flags AfXdpFlag `binapi:"af_xdp_flag,name=flags,default=0" json:"flags,omitempty"` Prog string `binapi:"string[256],name=prog" json:"prog,omitempty"` }
AfXdpCreate defines message 'af_xdp_create'.
func (*AfXdpCreate) GetCrcString ¶
func (*AfXdpCreate) GetCrcString() string
func (*AfXdpCreate) GetMessageName ¶
func (*AfXdpCreate) GetMessageName() string
func (*AfXdpCreate) GetMessageType ¶
func (*AfXdpCreate) GetMessageType() api.MessageType
func (*AfXdpCreate) Reset ¶
func (m *AfXdpCreate) Reset()
func (*AfXdpCreate) Size ¶
func (m *AfXdpCreate) Size() (size int)
func (*AfXdpCreate) Unmarshal ¶
func (m *AfXdpCreate) Unmarshal(b []byte) error
type AfXdpCreateReply ¶
type AfXdpCreateReply 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"` }
AfXdpCreateReply defines message 'af_xdp_create_reply'.
func (*AfXdpCreateReply) GetCrcString ¶
func (*AfXdpCreateReply) GetCrcString() string
func (*AfXdpCreateReply) GetMessageName ¶
func (*AfXdpCreateReply) GetMessageName() string
func (*AfXdpCreateReply) GetMessageType ¶
func (*AfXdpCreateReply) GetMessageType() api.MessageType
func (*AfXdpCreateReply) Reset ¶
func (m *AfXdpCreateReply) Reset()
func (*AfXdpCreateReply) Size ¶
func (m *AfXdpCreateReply) Size() (size int)
func (*AfXdpCreateReply) Unmarshal ¶
func (m *AfXdpCreateReply) Unmarshal(b []byte) error
type AfXdpCreateV2 ¶ added in v0.5.0
type AfXdpCreateV2 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=0" json:"rxq_size,omitempty"` TxqSize uint16 `binapi:"u16,name=txq_size,default=0" json:"txq_size,omitempty"` Mode AfXdpMode `binapi:"af_xdp_mode,name=mode,default=0" json:"mode,omitempty"` Flags AfXdpFlag `binapi:"af_xdp_flag,name=flags,default=0" json:"flags,omitempty"` Prog string `binapi:"string[256],name=prog" json:"prog,omitempty"` Namespace string `binapi:"string[64],name=namespace" json:"namespace,omitempty"` }
AfXdpCreateV2 defines message 'af_xdp_create_v2'.
func (*AfXdpCreateV2) GetCrcString ¶ added in v0.5.0
func (*AfXdpCreateV2) GetCrcString() string
func (*AfXdpCreateV2) GetMessageName ¶ added in v0.5.0
func (*AfXdpCreateV2) GetMessageName() string
func (*AfXdpCreateV2) GetMessageType ¶ added in v0.5.0
func (*AfXdpCreateV2) GetMessageType() api.MessageType
func (*AfXdpCreateV2) Marshal ¶ added in v0.5.0
func (m *AfXdpCreateV2) Marshal(b []byte) ([]byte, error)
func (*AfXdpCreateV2) Reset ¶ added in v0.5.0
func (m *AfXdpCreateV2) Reset()
func (*AfXdpCreateV2) Size ¶ added in v0.5.0
func (m *AfXdpCreateV2) Size() (size int)
func (*AfXdpCreateV2) Unmarshal ¶ added in v0.5.0
func (m *AfXdpCreateV2) Unmarshal(b []byte) error
type AfXdpCreateV2Reply ¶ added in v0.5.0
type AfXdpCreateV2Reply 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"` }
AfXdpCreateV2Reply defines message 'af_xdp_create_v2_reply'.
func (*AfXdpCreateV2Reply) GetCrcString ¶ added in v0.5.0
func (*AfXdpCreateV2Reply) GetCrcString() string
func (*AfXdpCreateV2Reply) GetMessageName ¶ added in v0.5.0
func (*AfXdpCreateV2Reply) GetMessageName() string
func (*AfXdpCreateV2Reply) GetMessageType ¶ added in v0.5.0
func (*AfXdpCreateV2Reply) GetMessageType() api.MessageType
func (*AfXdpCreateV2Reply) Marshal ¶ added in v0.5.0
func (m *AfXdpCreateV2Reply) Marshal(b []byte) ([]byte, error)
func (*AfXdpCreateV2Reply) Reset ¶ added in v0.5.0
func (m *AfXdpCreateV2Reply) Reset()
func (*AfXdpCreateV2Reply) Size ¶ added in v0.5.0
func (m *AfXdpCreateV2Reply) Size() (size int)
func (*AfXdpCreateV2Reply) Unmarshal ¶ added in v0.5.0
func (m *AfXdpCreateV2Reply) Unmarshal(b []byte) error
type AfXdpDelete ¶
type AfXdpDelete struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
AfXdpDelete defines message 'af_xdp_delete'.
func (*AfXdpDelete) GetCrcString ¶
func (*AfXdpDelete) GetCrcString() string
func (*AfXdpDelete) GetMessageName ¶
func (*AfXdpDelete) GetMessageName() string
func (*AfXdpDelete) GetMessageType ¶
func (*AfXdpDelete) GetMessageType() api.MessageType
func (*AfXdpDelete) Reset ¶
func (m *AfXdpDelete) Reset()
func (*AfXdpDelete) Size ¶
func (m *AfXdpDelete) Size() (size int)
func (*AfXdpDelete) Unmarshal ¶
func (m *AfXdpDelete) Unmarshal(b []byte) error
type AfXdpDeleteReply ¶
type AfXdpDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
AfXdpDeleteReply defines message 'af_xdp_delete_reply'.
func (*AfXdpDeleteReply) GetCrcString ¶
func (*AfXdpDeleteReply) GetCrcString() string
func (*AfXdpDeleteReply) GetMessageName ¶
func (*AfXdpDeleteReply) GetMessageName() string
func (*AfXdpDeleteReply) GetMessageType ¶
func (*AfXdpDeleteReply) GetMessageType() api.MessageType
func (*AfXdpDeleteReply) Reset ¶
func (m *AfXdpDeleteReply) Reset()
func (*AfXdpDeleteReply) Size ¶
func (m *AfXdpDeleteReply) Size() (size int)
func (*AfXdpDeleteReply) Unmarshal ¶
func (m *AfXdpDeleteReply) Unmarshal(b []byte) error
type AfXdpFlag ¶
type AfXdpFlag uint8
AfXdpFlag defines enum 'af_xdp_flag'.
const (
AF_XDP_API_FLAGS_NO_SYSCALL_LOCK AfXdpFlag = 1
)
type RPCService ¶
type RPCService interface { AfXdpCreate(ctx context.Context, in *AfXdpCreate) (*AfXdpCreateReply, error) AfXdpCreateV2(ctx context.Context, in *AfXdpCreateV2) (*AfXdpCreateV2Reply, error) AfXdpDelete(ctx context.Context, in *AfXdpDelete) (*AfXdpDeleteReply, error) }
RPCService defines RPC service af_xdp.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.