Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrWithMessage ¶
ErrWithMessage wraps Err and buffer to store annotation.
func (*ErrWithMessage) Error ¶
func (e *ErrWithMessage) Error() string
func (*ErrWithMessage) Unwrap ¶
func (e *ErrWithMessage) Unwrap() error
type Hash32 ¶
type Hash32 struct {
// Seed is the initial hash32 value.
Seed uint32
// Value is the calculated hash32 value. To reset the Hash32
// state, simply reset this to Seed.
Value uint32
// Optimal block size. See BlockSize method of hash.Hash32
// interface.
Block int
// If true then previous hash value is complemented to one before
// specifying to Accum and the output is then complemented to one.
OnesComplement bool
// Accum is the backend hash implementation. It takes input byte
// array and calculates new hash value based on previous one.
Accum func([]byte, uint32) uint32
}
Hash32 wraps a function Accum to implement hash.Hash32 interface.
type LcoresList ¶
type LcoresList []uint
LcoresList represents a list of unsigned ints, e.g. lcores. It implements sort.Interface.
func (LcoresList) Dup ¶
func (list LcoresList) Dup() LcoresList
Dup allocates new list and copies list's contents into it.
func (LcoresList) Equal ¶
func (list LcoresList) Equal(other LcoresList) bool
Equal returns true if list and other are identical.
func (LcoresList) Len ¶
func (list LcoresList) Len() int
func (LcoresList) Less ¶
func (list LcoresList) Less(i, j int) bool
func (LcoresList) String ¶
func (list LcoresList) String() string
func (LcoresList) Swap ¶
func (list LcoresList) Swap(i, j int)
type MbufArray ¶
type MbufArray C.struct_mbuf_array
MbufArray is a wrapper of port and queue id.
func NewEthdevMbufArray ¶
NewEthdevMbufArray allocates new MbufArray from huge pages memory for specified queue id, socket NUMA node and containing up to size mbufs. If EAL failed to allocate memory it will panic.
func NewMbufArray ¶
NewMbufArray allocates new MbufArray from huge pages memory for socket NUMA node and containing up to size mbufs. If EAL failed to allocate memory it will panic.