Lines Matching refs:options

922 static int run_options(struct sockmap_options *options, int cg_fd,  int test)  in run_options()  argument
981 err = sockmap_init_sockets(options->verbose); in run_options()
1227 options->drop_expected = true; in run_options()
1230 err = forever_ping_pong(options->rate, options); in run_options()
1232 options->base = false; in run_options()
1233 options->sendpage = false; in run_options()
1234 err = sendmsg_test(options); in run_options()
1236 options->base = false; in run_options()
1237 options->sendpage = true; in run_options()
1238 err = sendmsg_test(options); in run_options()
1240 options->base = true; in run_options()
1241 options->sendpage = false; in run_options()
1242 err = sendmsg_test(options); in run_options()
1244 options->base = true; in run_options()
1245 options->sendpage = true; in run_options()
1246 err = sendmsg_test(options); in run_options()
1300 static void test_options(char *options) in test_options() argument
1304 memset(options, 0, OPTSTRING); in test_options()
1307 append_str(options, "pass,", OPTSTRING); in test_options()
1309 append_str(options, "redir,", OPTSTRING); in test_options()
1311 append_str(options, "drop,", OPTSTRING); in test_options()
1314 append_str(options, tstr, OPTSTRING); in test_options()
1318 append_str(options, tstr, OPTSTRING); in test_options()
1322 append_str(options, tstr, OPTSTRING); in test_options()
1326 append_str(options, tstr, OPTSTRING); in test_options()
1331 append_str(options, tstr, OPTSTRING); in test_options()
1334 append_str(options, "ingress,", OPTSTRING); in test_options()
1336 append_str(options, "redir_skb,", OPTSTRING); in test_options()
1338 append_str(options, "ktls_skb,", OPTSTRING); in test_options()
1340 append_str(options, "ktls,", OPTSTRING); in test_options()
1342 append_str(options, "peek,", OPTSTRING); in test_options()
1347 char *options = calloc(OPTSTRING, sizeof(char)); in __test_exec() local
1360 test_options(options); in __test_exec()
1366 test_to_str(test), options); in __test_exec()
1374 free(options); in __test_exec()
1920 struct sockmap_options options = {0}; in main() local
1966 options.verbose = 1; in main()
1968 options.verbose = atoi(optarg); in main()
1977 options.data_test = true; in main()
1996 options.whitelist = strdup(optarg); in main()
1997 if (!options.whitelist) in main()
2001 options.blacklist = strdup(optarg); in main()
2002 if (!options.blacklist) in main()
2021 err = test_selftest(cg_fd, &options); in main()
2036 options.iov_count = iov_count; in main()
2037 options.iov_length = length; in main()
2038 options.rate = rate; in main()
2040 err = run_options(&options, cg_fd, test); in main()
2042 if (options.whitelist) in main()
2043 free(options.whitelist); in main()
2044 if (options.blacklist) in main()
2045 free(options.blacklist); in main()