selftests/bpf: add offload test based on netdevsim
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 1 Dec 2017 23:09:00 +0000 (15:09 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Dec 2017 23:27:58 +0000 (00:27 +0100)
commit417ec26477a5c19abc72dd0298f48ebe5d2db43a
tree551c0b0691e293981b2aa90a96743bc7a48bb315
parent31d3ad832948c75139b0e5b653912f7898a1d5d5
selftests/bpf: add offload test based on netdevsim

Add a test of BPF offload control path interfaces based on
just-added netdevsim driver.  Perform various checks of both
the stack and the expected driver behaviour.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/sample_ret0.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_offload.py [new file with mode: 0755]