package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
DefaultReadOnlyOpts provides recommended default options for initializing a readonly AF_XDP socket.
ReadOnlyFromSocket takes an AF_XDP socket, initializes it, and binds it to a particular interface and queue.
ReadOnlySocket returns an initialized read-only AF_XDP socket bound to a particular interface and queue.
# Structs
The CompletionQueue is how the kernel tells a process which buffers have been transmitted and can be reused.
A ControlBlock contains all the control structures necessary to use an AF_XDP socket.
The FillQueue is how a process tells the kernel which buffers are available to be filled by incoming packets.
ReadOnlySocketOpts configure a read-only AF_XDP socket.
The RXQueue is how the kernel tells a process which buffers are full with incoming packets.
The TXQueue is how a process tells the kernel which buffers are available to be sent via the NIC.
UMEM is the shared memory area that the kernel and userspace put packets in.