selftest/bpf: extend the offload test with map checks
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 18 Jan 2018 03:13:31 +0000 (19:13 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Jan 2018 21:54:26 +0000 (22:54 +0100)
commit7fedbb7c5a7c4bda418bc1056c06c81db36e4299
treeff8d1f47eff09b3e16909b731c0aa5bee854698a
parent395cacb5f1a0a290f1ae9ca4692c400d2b57a705
selftest/bpf: extend the offload test with map checks

Check map device information is reported correctly, and perform
basic map operations.  Check device destruction gets rid of the
maps and map allocation failure path by telling netdevsim to
reject map offload via DebugFS.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/sample_map_ret0.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_offload.py