flow_dissector: implements flow dissector BPF hook
authorPetar Penkov <ppenkov@google.com>
Fri, 14 Sep 2018 14:46:18 +0000 (07:46 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 14 Sep 2018 19:04:33 +0000 (12:04 -0700)
commitd58e468b1112dcd1d5193c0a89ff9f98b5a3e8b9
treeaca881df342a9ac9bcef834f5fc2621f5a095403
parent1edb6e035eb72a17462ba275fe2db36c37a62909
flow_dissector: implements flow dissector BPF hook

Adds a hook for programs of type BPF_PROG_TYPE_FLOW_DISSECTOR and
attach type BPF_FLOW_DISSECTOR that is executed in the flow dissector
path. The BPF program is per-network namespace.

Signed-off-by: Petar Penkov <ppenkov@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
include/linux/bpf_types.h
include/linux/skbuff.h
include/net/net_namespace.h
include/net/sch_generic.h
include/uapi/linux/bpf.h
kernel/bpf/syscall.c
kernel/bpf/verifier.c
net/core/filter.c
net/core/flow_dissector.c