Available on crate feature
net
only.Expand description
AF_XDP
related types and constants.
Structs§
- Sockaddr
XdpFlags XDP_*
constants for use inSocketAddrXdp
.- Socket
Addr Xdp - A XDP socket address.
- XdpDesc
- XDP rx/tx frame descriptor.
- XdpDesc
Options XDP_*
constants for use inXdpDesc
.- XdpMmap
Offsets - XDP mmap offsets.
- XdpOptions
- XDP options.
- XdpOptions
Flags XDP_OPTIONS_*
constants returned byget_xdp_options
.- XdpRing
Flags XDP_RING_*
constants for use in fill and/or Tx ring.- XdpRing
Offset - XDP ring offset.
- XdpStatistics
- XDP statistics.
- XdpUmem
Reg - XDP umem registration.
- XdpUmem
RegFlags XDP_UMEM_*
constants for use inXdpUmemReg
.
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
theXdpDesc
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.