You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/bpf/aya-bpf/src
Michal Rostecki 895f96e971 ebpf: Add TcContext for classifier programs
This change separates the previous `SkBuffContext` into three structs:

* `SkBuff` which is a wrapper around `__sk_buff` which contains all
  possible methods operating on it.
* `SkBuffContext` which is a program context for programs which
  **cannot** access `__sk_buff` directly and instead can only use
  `load_bytes`.
* `TcContext` which is a classifier context which can access `__sk_buff`
  directly, hence exposes `data` and `data_end`.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
2 years ago
..
maps aya-bpf/maps: Create LPMTrie with BPF_F_NO_PREALLOC 2 years ago
programs ebpf: Add TcContext for classifier programs 2 years ago
args.rs aya-bpf: use bpf_read_probe for reading pt_regs 2 years ago
helpers.rs bpf: avoid stack-alloc for `fmt` in `bpf_printk!` 2 years ago
lib.rs bpf: Only use never type with rust nightly 2 years ago