diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2016-07-03 01:28:47 +0200 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:27 +0300 |
| commit | 8dbaaca1649bf054d16c3b63107ce28c493cc2f7 (patch) | |
| tree | 6a9efad491ef89fec8ae5cd829a2d45634e1e465 /samples/bpf/bpf_helpers.h | |
| parent | 388c8f8d94fe2569287f6ce83cb3ef649af2c2ab (diff) | |
bpf: add bpf_get_hash_recalc helper
If skb_clear_hash() was invoked due to mangling of relevant headers and
BPF program needs skb->hash later on, we can add a helper to trigger hash
recalculation via bpf_get_hash_recalc().
The helper will return the newly retrieved hash directly, but later access
can also be done via skb context again through skb->hash directly (inline)
without needing to call the helper once more.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
