[][src]Module rebpf::bpf::maps

This module contains type-safe abstractions around some of various maps that the BPF VM uses to communicate with userspace. As the capabilities of the maps vary greatly, most of their behaviour is exposed via specific traits.

Structs

Array

A map behaving as a simple contiguous array, with arbitrary data as content.

CpuMap

A map dedicated to redirecting packet processing to given CPUs, as part of an XDP BPF program.

DevMap

A map dedicated to redirecting packet processing to other network devices as part of an XDP BPF program.

PerCpuArray

This map represent a faster array maintained on a per-CPU basis.

XskMap

A map dedicated to redirecting packet processing to userspace AF_XDP sockets as part of an XDP BPF program.

Traits

LookupMut
Redirect

This trait represents the ability for a map to specify an XDP redirection, whether to a network device, a CPU, or a socket.