Module xdp

Source
Available on crate feature net only.
Expand description

AF_XDP related types and constants.

Structs§

SockaddrXdpFlags
XDP_* constants for use in SocketAddrXdp.
SocketAddrXdp
A XDP socket address.
XdpDesc
XDP rx/tx frame descriptor.
XdpDescOptions
XDP_* constants for use in XdpDesc.
XdpMmapOffsets
XDP mmap offsets.
XdpOptions
XDP options.
XdpOptionsFlags
XDP_OPTIONS_* constants returned by get_xdp_options.
XdpRingFlags
XDP_RING_* constants for use in fill and/or Tx ring.
XdpRingOffset
XDP ring offset.
XdpStatistics
XDP statistics.
XdpUmemReg
XDP umem registration.
XdpUmemRegFlags
XDP_UMEM_* constants for use in XdpUmemReg.

Constants§

XDP_PGOFF_RX_RING
Offset for mmapping rx ring.
XDP_PGOFF_TX_RING
Offset for mmapping tx ring.
XDP_UMEM_PGOFF_COMPLETION_RING
Offset for mmapping completion ring.
XDP_UMEM_PGOFF_FILL_RING
Offset for mmapping fill ring.
XSK_UNALIGNED_BUF_ADDR_MASK
Mask used to binary and the XdpDesc addr to extract the address without the offset carried in the upper 16 bits of the address in unaligned mode.
XSK_UNALIGNED_BUF_OFFSET_SHIFT
Offset used to shift the XdpDesc addr to the right to extract the address offset in unaligned mode.