Lines Matching refs:options
620 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options() argument
655 err = sockmap_init_sockets(options->verbose); in run_options()
817 options->drop_expected = true; in run_options()
820 err = forever_ping_pong(options->rate, options); in run_options()
822 options->base = false; in run_options()
823 options->sendpage = false; in run_options()
824 err = sendmsg_test(options); in run_options()
826 options->base = false; in run_options()
827 options->sendpage = true; in run_options()
828 err = sendmsg_test(options); in run_options()
830 options->base = true; in run_options()
831 options->sendpage = false; in run_options()
832 err = sendmsg_test(options); in run_options()
834 options->base = true; in run_options()
835 options->sendpage = true; in run_options()
836 err = sendmsg_test(options); in run_options()
877 static void test_options(char *options) in test_options() argument
881 memset(options, 0, OPTSTRING); in test_options()
884 strncat(options, "pass,", OPTSTRING); in test_options()
886 strncat(options, "pass_noisy,", OPTSTRING); in test_options()
888 strncat(options, "redir,", OPTSTRING); in test_options()
890 strncat(options, "redir_noisy,", OPTSTRING); in test_options()
892 strncat(options, "drop,", OPTSTRING); in test_options()
895 strncat(options, tstr, OPTSTRING); in test_options()
899 strncat(options, tstr, OPTSTRING); in test_options()
903 strncat(options, tstr, OPTSTRING); in test_options()
907 strncat(options, tstr, OPTSTRING); in test_options()
910 strncat(options, "ingress,", OPTSTRING); in test_options()
912 strncat(options, "skb,", OPTSTRING); in test_options()
917 char *options = calloc(OPTSTRING, sizeof(char)); in __test_exec() local
930 test_options(options); in __test_exec()
935 test_to_str(test), options); in __test_exec()
941 free(options); in __test_exec()
1417 struct sockmap_options options = {0}; in main() local
1453 options.verbose = 1; in main()
1462 options.data_test = true; in main()
1506 options.iov_count = iov_count; in main()
1507 options.iov_length = length; in main()
1508 options.rate = rate; in main()
1510 err = run_options(&options, cg_fd, test); in main()