]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/bpf: Fix txmsg_redir of test_txmsg_pull in test_sockmap
authorZijian Zhang <zijianzhang@bytedance.com>
Sat, 12 Oct 2024 20:37:31 +0000 (20:37 +0000)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 16 Oct 2024 20:42:04 +0000 (13:42 -0700)
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 <john.fastabend@gmail.com>
Signed-off-by: Zijian Zhang <zijianzhang@bytedance.com>
Link: https://lore.kernel.org/r/20241012203731.1248619-3-zijianzhang@bytedance.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/test_sockmap.c

index 8249f3c1fbd659ef3867db8b62bec5351757c82a..075c93ed143e63bc3ae826f141d60f54164b15ce 100644 (file)
@@ -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);