aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testing/selftests/bpf/test_sockmap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/testing/selftests/bpf/test_sockmap.c b/tools/testing/selftests/bpf/test_sockmap.c
index 05c8cb71724a..9e78df207919 100644
--- a/tools/testing/selftests/bpf/test_sockmap.c
+++ b/tools/testing/selftests/bpf/test_sockmap.c
@@ -1413,18 +1413,12 @@ out:
1413 1413
1414int main(int argc, char **argv) 1414int main(int argc, char **argv)
1415{ 1415{
1416 struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY};
1417 int iov_count = 1, length = 1024, rate = 1; 1416 int iov_count = 1, length = 1024, rate = 1;
1418 struct sockmap_options options = {0}; 1417 struct sockmap_options options = {0};
1419 int opt, longindex, err, cg_fd = 0; 1418 int opt, longindex, err, cg_fd = 0;
1420 char *bpf_file = BPF_SOCKMAP_FILENAME; 1419 char *bpf_file = BPF_SOCKMAP_FILENAME;
1421 int test = PING_PONG; 1420 int test = PING_PONG;
1422 1421
1423 if (setrlimit(RLIMIT_MEMLOCK, &r)) {
1424 perror("setrlimit(RLIMIT_MEMLOCK)");
1425 return 1;
1426 }
1427
1428 if (argc < 2) 1422 if (argc < 2)
1429 return test_suite(); 1423 return test_suite();
1430 1424