bpf: add test cases for new BPF_J{LT, LE, SLT, SLE} instructions
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 Aug 2017 23:40:03 +0000 (01:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 23:53:57 +0000 (16:53 -0700)
commit31e482bf7ecfcae51472b90cd572462f58e6a7bc
tree26144713b32d1aca78e8cf7fe85552fd71dd8845
parentb4e432f1000a171d901e42551459059831925770
bpf: add test cases for new BPF_J{LT, LE, SLT, SLE} instructions

Add test cases to the verifier selftest suite in order to verify that
i) direct packet access, and ii) dynamic map value access is working
with the changes related to the new instructions.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_verifier.c