kernel_optimize_test/net/bpf
Stanislav Fomichev 089b19a920 flow_dissector: switch kernel context to struct bpf_flow_dissector
struct bpf_flow_dissector has a small subset of sk_buff fields that
flow dissector BPF program is allowed to access and an optional
pointer to real skb. Real skb is used only in bpf_skb_load_bytes
helper to read non-linear data.

The real motivation for this is to be able to call flow dissector
from eth_get_headlen context where we don't have an skb and need
to dissect raw bytes.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-04-23 18:36:33 +02:00
..
Makefile bpf: fix missing bpf_check_uarg_tail_zero in BPF_PROG_TEST_RUN 2019-04-11 21:50:20 +02:00
test_run.c flow_dissector: switch kernel context to struct bpf_flow_dissector 2019-04-23 18:36:33 +02:00