xdpiface

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SO_PREFER_BUSY_POLL int = C.XDP_SOCK_SO_PREFER_BUSY_POLL
	SO_BUSY_POLL            = C.XDP_SOCK_SO_BUSY_POLL
	SO_BUSY_POLL_BUDGET     = C.XDP_SOCK_SO_BUSY_POLL_BUDGET
)
View Source
const XDP_IFACE_DEFAULT string = C.XDP_IFACE_DEFAULT
View Source
const XDP_IFACE_XDP_PROG_DEFAULT string = C.XDP_IFACE_XDP_PROG_DEFAULT
View Source
const XDP_LOG_CRITICAL int = C.XDP_LOG_CRITICAL
View Source
const XDP_LOG_DEBUG int = C.XDP_LOG_DEBUG
View Source
const XDP_LOG_ERROR int = C.XDP_LOG_ERROR
View Source
const XDP_LOG_INFO int = C.XDP_LOG_INFO
View Source
const XDP_LOG_LVLS int = C.XDP_LOG_LVLS
View Source
const XDP_LOG_TRACE int = C.XDP_LOG_TRACE
View Source
const XDP_LOG_WARNING int = C.XDP_LOG_WARNING
View Source
const XDP_SOCK_XSKS_MAP_DEFAULT string = C.XDP_SOCK_XSKS_MAP_DEFAULT

Variables

This section is empty.

Functions

func XdpLogLevelSet

func XdpLogLevelSet(level int)

Types

type XdpIface

type XdpIface struct {
	// contains filtered or unexported fields
}

func XdpIfaceNew

func XdpIfaceNew(xdpInterface string) (*XdpIface, error)

func (XdpIface) Destroy

func (self XdpIface) Destroy()

func (XdpIface) LoadProgram

func (self XdpIface) LoadProgram(xdpProgPath string) error

func (XdpIface) UnloadProgram

func (self XdpIface) UnloadProgram()

type XdpSock

type XdpSock struct {
	// contains filtered or unexported fields
}

func XdpSockNew

func XdpSockNew(xdpInterface *XdpIface) (*XdpSock, error)

func (XdpSock) Destroy

func (self XdpSock) Destroy()

func (XdpSock) GetFd

func (self XdpSock) GetFd() (int, error)

func (XdpSock) LoopUpBpfMap

func (self XdpSock) LoopUpBpfMap(xdpInterface *XdpIface, mapName string,
	key_size uint32, value_size uint32) error

func (XdpSock) Recv

func (self XdpSock) Recv(buffer []byte, bufferSize *int) error

func (XdpSock) RxBatchGetSize

func (self XdpSock) RxBatchGetSize(framesRecvd *uint32, batchSize uint32) error

func (XdpSock) RxBatchRelease

func (self XdpSock) RxBatchRelease(framesRecvd uint32) error

func (XdpSock) Send

func (self XdpSock) Send(buffer []byte, bufferSize int) error

func (XdpSock) SetSockopt

func (self XdpSock) SetSockopt(optType int, optValue int) error

func (XdpSock) TxBatchRelease

func (self XdpSock) TxBatchRelease(framesSend uint32) error

func (XdpSock) TxBatchSetSize

func (self XdpSock) TxBatchSetSize(batchSize uint32) error

Jump to

Keyboard shortcuts

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