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
Tuetuopay 890e8c9340 bpf: fix set_mark by not copying __sk_buff
Such an assignment in two parts (first deref in `unsafe`, then field
access outside of `unsafe`) is bogus: the deref "returned" by the
`unsafe` block actually creates a copy of the `__sk_buff` struct because
it implements `Copy`. The mark value is written to the `mark` field of
the copy, and not the real `__sk_buff`.

Change it to do it all in the `unsafe` block.

The same is done for the `.len()` getter to avoid copying the whole
`__sk_buff` struct for a 32 bit field. Although such a copy should be
optimized out by the compiler, it's better to help it do so.
2 years ago
..
.cargo Re-organize into a single workspace 2 years ago
aya-bpf bpf: fix set_mark by not copying __sk_buff 2 years ago
aya-bpf-bindings fix uninlined_format_args clippy issues 2 years ago
aya-bpf-cty fix uninlined_format_args clippy issues 2 years ago
aya-log-ebpf lib: Add display hints 2 years ago
rust-toolchain.toml Re-organize into a single workspace 2 years ago