flow_dissector: implements eBPF parser
authorPetar Penkov <ppenkov@google.com>
Fri, 14 Sep 2018 14:46:21 +0000 (07:46 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 14 Sep 2018 19:04:33 +0000 (12:04 -0700)
commit9c98b13cc3bb5d90ee2ec047d591272b382468fd
treefb62b17192debaa0b34aa1f5b215f35ae459070c
parentc22fbae76c9fdef5b7406b27754db1758e041991
flow_dissector: implements eBPF parser

This eBPF program extracts basic/control/ip address/ports keys from
incoming packets. It supports recursive parsing for IP encapsulation,
and VLAN, along with IPv4/IPv6 and extension headers.  This program is
meant to show how flow dissection and key extraction can be done in
eBPF.

Link: http://vger.kernel.org/netconf2017_files/rx_hardening_and_udp_gso.pdf
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>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/bpf_flow.c [new file with mode: 0644]