aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZijian Zhang <[email protected]>2024-10-12 20:37:31 +0000
committerMartin KaFai Lau <[email protected]>2024-10-16 13:42:04 -0700
commitb29e231d66303c12b7b8ac3ac2a057df06b161e8 (patch)
treec77eac5a2cb05a8bb8d4f1ba812f28b386c0e973
parentee9b352ce4650ffc0d8ca0ac373d7c009c7e561e (diff)
selftests/bpf: Fix txmsg_redir of test_txmsg_pull in test_sockmap
txmsg_redir in "Test pull + redirect" case of test_txmsg_pull should be 1 instead of 0. Fixes: 328aa08a081b ("bpf: Selftests, break down test_sockmap into subtests") Acked-by: John Fastabend <[email protected]> Signed-off-by: Zijian Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
-rw-r--r--tools/testing/selftests/bpf/test_sockmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_sockmap.c b/tools/testing/selftests/bpf/test_sockmap.c
index 8249f3c1fbd6..075c93ed143e 100644
--- a/tools/testing/selftests/bpf/test_sockmap.c
+++ b/tools/testing/selftests/bpf/test_sockmap.c
@@ -1606,7 +1606,7 @@ static void test_txmsg_pull(int cgrp, struct sockmap_options *opt)
test_send_large(opt, cgrp);
/* Test pull + redirect */
- txmsg_redir = 0;
+ txmsg_redir = 1;
txmsg_start = 1;
txmsg_end = 2;
test_send(opt, cgrp);