]> git.ipfire.org Git - thirdparty/linux.git/commit
net/flow_dissector: pass flow_keys->n_proto to BPF programs
authorStanislav Fomichev <sdf@google.com>
Mon, 1 Apr 2019 20:57:31 +0000 (13:57 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Apr 2019 14:49:48 +0000 (16:49 +0200)
commit822fe61795018265ae14731d4e5399e5bde36864
tree46a279c48db0fef4326e864ffc60df9146c99e19
parent2c3af7d901c61c101c02f431cfb520af9ff56ab4
net/flow_dissector: pass flow_keys->n_proto to BPF programs

This is a preparation for the next commit that would prohibit access to
the most fields of __sk_buff from the BPF programs.

Instead of requiring BPF flow dissector programs to look into skb,
pass all input data in the flow_keys.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/flow_dissector.c
tools/testing/selftests/bpf/progs/bpf_flow.c