Documentation ¶
Index ¶
- Constants
- func XdpLogLevelSet(level int)
- type XdpIface
- type XdpSock
- func (self XdpSock) Destroy()
- func (self XdpSock) GetFd() (int, error)
- func (self XdpSock) LoopUpBpfMap(xdpInterface *XdpIface, mapName string, key_size uint32, value_size uint32) error
- func (self XdpSock) Recv(buffer []byte, bufferSize *int) error
- func (self XdpSock) RxBatchGetSize(framesRecvd *uint32, batchSize uint32) error
- func (self XdpSock) RxBatchRelease(framesRecvd uint32) error
- func (self XdpSock) Send(buffer []byte, bufferSize int) error
- func (self XdpSock) SetSockopt(optType int, optValue int) error
- func (self XdpSock) TxBatchRelease(framesSend uint32) error
- func (self XdpSock) TxBatchSetSize(batchSize uint32) error
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 (XdpIface) LoadProgram ¶
func (XdpIface) UnloadProgram ¶
func (self XdpIface) UnloadProgram()
type XdpSock ¶
type XdpSock struct {
// contains filtered or unexported fields
}
func XdpSockNew ¶
func (XdpSock) LoopUpBpfMap ¶
func (XdpSock) RxBatchGetSize ¶
func (XdpSock) RxBatchRelease ¶
func (XdpSock) TxBatchRelease ¶
func (XdpSock) TxBatchSetSize ¶
Click to show internal directories.
Click to hide internal directories.