diff options
| author | Stanislav Fomichev <[email protected]> | 2020-05-08 17:46:09 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-05-08 22:48:20 +0000 |
| commit | 488a23b89d175cc78f352417114f4f5a10470722 (patch) | |
| tree | 547d059679ced0d9deb2f18100789bdedba84e1f /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
| parent | selftests/bpf: Generalize helpers to control background listener (diff) | |
| download | kernel-488a23b89d175cc78f352417114f4f5a10470722.tar.gz kernel-488a23b89d175cc78f352417114f4f5a10470722.zip | |
selftests/bpf: Move existing common networking parts into network_helpers
1. Move pkt_v4 and pkt_v6 into network_helpers and adjust the users.
2. Copy-paste spin_lock_thread into two tests that use it.
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Acked-by: Andrey Ignatov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c b/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c index faccc66f4e39..f47e7b1cb32c 100644 --- a/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c +++ b/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include <test_progs.h> +#include <network_helpers.h> enum { QUEUE, |
