]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2495562b65651fec11e85cbf61c610884b1bca3
treeff8d1f47eff09b3e16909b731c0aa5bee854698a
parentc80225d11804fdb72fcfd68cc9cc203ca736aa99
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