test: bpf: add a testcase reduced from nmap
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 28 Oct 2014 22:11:43 +0000 (15:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 19:44:37 +0000 (15:44 -0400)
commite21ab36a80c2e011a14149fecdd654b8b47d3e8c
tree9dbdb42a7a38ec47602aff64c76c74b177a091c7
parent342ded409608f84fe929216efe0ca2d45e2656be
test: bpf: add a testcase reduced from nmap

nmap generates classic BPF programs to filter ARP packets with given target MAC
which triggered a bug in eBPF x64 JIT. The bug was fixed in
commit e0ee9c12157d ("x86: bpf_jit: fix two bugs in eBPF JIT compiler")
This patch is adding a testcase in eBPF instructions (those that
were generated by classic->eBPF converter) to be processed by JIT.
The test is primarily targeting JIT compiler.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c