test_bpf: flag tests that cannot be jited on s390
authorKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 27 Jun 2018 15:19:21 +0000 (17:19 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Jun 2018 21:58:39 +0000 (23:58 +0200)
commit3203c9010060806ff88c9989aeab4dc8d9a474dc
tree95d8bced600e62c779cdfd4e42b8a73ca6d0f29e
parentdd349c3ffd93d15d01f4f5ace73870ca45ea249d
test_bpf: flag tests that cannot be jited on s390

Flag with FLAG_EXPECTED_FAIL the BPF_MAXINSNS tests that cannot be jited
on s390 because they exceed BPF_SIZE_MAX and fail when
CONFIG_BPF_JIT_ALWAYS_ON is set. Also set .expected_errcode to -ENOTSUPP
so the tests pass in that case.

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
lib/test_bpf.c