Commit Graph

4 Commits (022a66dfbb858bf3d4a27288ac078b68910d70d9)

Author SHA1 Message Date
Tuetuopay 022a66dfbb bpf: make xdp maps functions safe
Values in those map are small enough to return copied values instead of
reference to values.
2 years ago
Tuetuopay 9ed9873742 xdp: add support for chained xdp programs in {cpu,dev}map
set/insert functions can now take an optional bpf program fd to run once
the packet has been redirected from the main probe
2 years ago
Tuetuopay 1113356b6d bpf: Update XDP maps implementation
The implementation changed since the original commit was written, and
some mistakes went in:
- missing bpf_redirect_map wrapper
- extra bpf_map_lookup_elem on maps for which it is forbidden
2 years ago
Dave Tucker ba72467010 bpf: Implement XDP maps
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2 years ago