Lines Matching refs:options
1049 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options() argument
1105 err = sockmap_init_sockets(options->verbose); in run_options()
1352 options->drop_expected = true; in run_options()
1355 err = forever_ping_pong(options->rate, options); in run_options()
1357 options->base = false; in run_options()
1358 options->sendpage = false; in run_options()
1359 err = sendmsg_test(options); in run_options()
1361 options->base = false; in run_options()
1362 options->sendpage = true; in run_options()
1363 err = sendmsg_test(options); in run_options()
1365 options->base = true; in run_options()
1366 options->sendpage = false; in run_options()
1367 err = sendmsg_test(options); in run_options()
1369 options->base = true; in run_options()
1370 options->sendpage = true; in run_options()
1371 err = sendmsg_test(options); in run_options()
1423 static void test_options(char *options) in test_options() argument
1427 memset(options, 0, OPTSTRING); in test_options()
1430 append_str(options, "pass,", OPTSTRING); in test_options()
1432 append_str(options, "redir,", OPTSTRING); in test_options()
1434 append_str(options, "drop,", OPTSTRING); in test_options()
1437 append_str(options, tstr, OPTSTRING); in test_options()
1441 append_str(options, tstr, OPTSTRING); in test_options()
1445 append_str(options, tstr, OPTSTRING); in test_options()
1449 append_str(options, tstr, OPTSTRING); in test_options()
1454 append_str(options, tstr, OPTSTRING); in test_options()
1457 append_str(options, "ingress,", OPTSTRING); in test_options()
1459 append_str(options, "redir_skb,", OPTSTRING); in test_options()
1461 append_str(options, "ktls_skb,", OPTSTRING); in test_options()
1463 append_str(options, "ktls,", OPTSTRING); in test_options()
1465 append_str(options, "peek,", OPTSTRING); in test_options()
1470 char *options = calloc(OPTSTRING, sizeof(char)); in __test_exec() local
1483 test_options(options); in __test_exec()
1489 test_to_str(test), options); in __test_exec()
1497 free(options); in __test_exec()
2109 struct sockmap_options options = {0}; in main() local
2155 options.verbose = 1; in main()
2157 options.verbose = atoi(optarg); in main()
2166 options.data_test = true; in main()
2185 options.whitelist = strdup(optarg); in main()
2186 if (!options.whitelist) in main()
2190 options.blacklist = strdup(optarg); in main()
2191 if (!options.blacklist) in main()
2213 err = test_selftest(cg_fd, &options); in main()
2228 options.iov_count = iov_count; in main()
2229 options.iov_length = length; in main()
2230 options.rate = rate; in main()
2232 err = run_options(&options, cg_fd, test); in main()
2234 if (options.whitelist) in main()
2235 free(options.whitelist); in main()
2236 if (options.blacklist) in main()
2237 free(options.blacklist); in main()