Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.35 KB

afxdp.md

File metadata and controls

28 lines (22 loc) · 1.35 KB

AF_XDP interface

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.

Samples

The xskfwd sample provides a simple echo server using AF_XDP sockets.

See Also

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