The afxdp.h
header declares the AF_XDP sockets interface. AF_XDP sockets are used by user mode applications to receive/inspect/drop/send network traffic via XDP hook points. To receive traffic, packets must be steered to a socket by configuring XDP rules/programs using an interface declared elsewhere. Traffic is passed as flat buffer, L2 frames across this interface using single producer, single consumer shared memory rings.
TODO Complete AF_XDP documentation.
The xskfwd
sample provides a simple echo server using AF_XDP
sockets.
XSK_BUFFER_ADDRESS
XSK_BUFFER_DESCRIPTOR
XSK_FRAME_DESCRIPTOR
XSK_NOTIFY_FLAGS
XSK_NOTIFY_RESULT_FLAGS
XSK_RING_FLAGS
xsk-sockopts
XskActivate
XskBind
XskCreate
XskGetNotifyAsyncResult
XskGetSockopt
XskIoctl
XskNotifyAsync
XskNotifySocket
XskSetSockopt