summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-06-14 11:06:56 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-06-15 03:13:17 +0200
commit47cf52a246e526e2092d60ac01c54af9bd45dcc9 (patch)
tree9b546d89e5d9a00bcd2a1af045095a541216267f /init
parent07480cbc05ef1ff7301cb11afb7d894ad3d0916a (diff)
selftests/bpf: test offloads even with BPF programs present
Modern distroes increasingly make use of BPF programs. Default Ubuntu 18.04 installation boots with a number of cgroup_skb programs loaded. test_offloads.py tries to check if programs and maps are not leaked on error paths by confirming the list of programs on the system is empty between tests. Since we can no longer expect the system to have no BPF objects at boot try to remember the programs and maps present at the start, and skip those when scanning the system. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions