Thia Wyrod
b655cf973f
aya-bpf: remove unnecessary unsafe markers on map functions.
...
Map lookup and deletion can yield stale keys and values by virtue of
sharing a data structure with userspace programs and other BPF programs
which can modify it. However, all accesses remain perfectly safe and will
not cause memory corruption or data races.
3 years ago
Alessandro Decina
c0f695c4b6
bpf: Add LruHashMap and LruPerCpuHashMap
3 years ago
Dave Tucker
69041954cb
bpf: Added pinned constructor to maps
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Tw
55ba0538f2
bpf: add support for tracepoint program ( #29 )
...
This patch add initial support for tracepoint program type.
Hope you enjoy.
Signed-off-by: Tw <wei.tan@intel.com>
3 years ago
Arnabjyoti Kalita
6974d349e8
programs: add support for attaching and detaching TC programs
...
This change adds support for attaching TC programs directly from aya, without
having to use iproute2/tc.
3 years ago
Alessandro Decina
240c65507b
bpf: add HashMap::remove()
3 years ago
Alessandro Decina
696ae6079c
bpf: Add HashMap::pinned API
3 years ago
Alessandro Decina
575e85c412
bpf: add id and pinning fields to bpf_map_def
3 years ago
Alessandro Decina
ab8d512b60
bpf: add HashMap::insert
3 years ago
Alessandro Decina
e11edc072b
bpf: add more bindings
...
Initial support for Array, HashMap and SockHash maps, and for SkSkb,
SkMsg, SockOps and XDP programs.
3 years ago