Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf: selftests: Remove unused 'nospace_err' in tests for batched ops in array maps

This seems to be a reminiscent from the hashmap tests.

Signed-off-by: Pedro Tammela <pctammela@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210315132954.603108-1-pctammela@gmail.com

authored by

Pedro Tammela and committed by
Andrii Nakryiko
23f50b5a d94436a5

-5
-5
tools/testing/selftests/bpf/map_tests/array_map_batch_ops.c
··· 55 55 int map_fd, *keys, *values, *visited; 56 56 __u32 count, total, total_success; 57 57 const __u32 max_entries = 10; 58 - bool nospace_err; 59 58 __u64 batch = 0; 60 59 int err, step; 61 60 DECLARE_LIBBPF_OPTS(bpf_map_batch_opts, opts, ··· 89 90 * elements each. 90 91 */ 91 92 count = step; 92 - nospace_err = false; 93 93 while (true) { 94 94 err = bpf_map_lookup_batch(map_fd, 95 95 total ? &batch : NULL, &batch, ··· 104 106 break; 105 107 106 108 } 107 - 108 - if (nospace_err == true) 109 - continue; 110 109 111 110 CHECK(total != max_entries, "lookup with steps", 112 111 "total = %u, max_entries = %u\n", total, max_entries);