aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sock_fields.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-12-14 19:59:04 +0000
committerDaniel Borkmann <[email protected]>2021-12-14 21:16:54 +0000
commitc164b8b40422ef5c643d08bbc63280e1e1610573 (patch)
treea0abd59a52337b6683405d303b70e32dc538c96b /tools/testing/selftests/bpf/prog_tests/sock_fields.c
parentlibbpf: Auto-bump RLIMIT_MEMLOCK if kernel needs it for BPF (diff)
downloadkernel-c164b8b40422ef5c643d08bbc63280e1e1610573.tar.gz
kernel-c164b8b40422ef5c643d08bbc63280e1e1610573.zip
selftests/bpf: Remove explicit setrlimit(RLIMIT_MEMLOCK) in main selftests
As libbpf now is able to automatically take care of RLIMIT_MEMLOCK increase (or skip it altogether on recent enough kernels), remove explicit setrlimit() invocations in bench, test_maps, test_verifier, and test_progs. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sock_fields.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/sock_fields.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/sock_fields.c b/tools/testing/selftests/bpf/prog_tests/sock_fields.c
index fae40db4d81f..9fc040eaa482 100644
--- a/tools/testing/selftests/bpf/prog_tests/sock_fields.c
+++ b/tools/testing/selftests/bpf/prog_tests/sock_fields.c
@@ -15,7 +15,6 @@
#include "network_helpers.h"
#include "cgroup_helpers.h"
#include "test_progs.h"
-#include "bpf_rlimit.h"
#include "test_sock_fields.skel.h"
enum bpf_linum_array_idx {