Commit Graph

6 Commits (e3f7324bafd3f2c1735a7180618bd2dd5c1b8fbf)

Author SHA1 Message Date
Tuetuopay e3f7324baf bpf/devmap: don't expose `bpf_devmap_value`
Use our own type that:
- is stable as not from bindgen
- does not have an union inside
2 years ago
Tuetuopay 48cdfc7793 bpf: add documentation for XDP maps 2 years ago
Tuetuopay c4141ccba8 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 6b58b147df 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 46ebe1fd9a 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 f6c101274f bpf: Implement XDP maps
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2 years ago