Lines Matching refs:topts
31 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_l4lb()
56 topts.data_in = &pkt_v4; in test_l4lb()
57 topts.data_size_in = sizeof(pkt_v4); in test_l4lb()
59 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_l4lb()
61 ASSERT_EQ(topts.retval, 7 /*TC_ACT_REDIRECT*/, "ipv4 test_run retval"); in test_l4lb()
62 ASSERT_EQ(topts.data_size_out, 54, "ipv4 test_run data_size_out"); in test_l4lb()
65 topts.data_in = &pkt_v6; in test_l4lb()
66 topts.data_size_in = sizeof(pkt_v6); in test_l4lb()
67 topts.data_size_out = sizeof(buf); /* reset out size */ in test_l4lb()
69 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_l4lb()
71 ASSERT_EQ(topts.retval, 7 /*TC_ACT_REDIRECT*/, "ipv6 test_run retval"); in test_l4lb()
72 ASSERT_EQ(topts.data_size_out, 74, "ipv6 test_run data_size_out"); in test_l4lb()