Lines Matching refs:options

909 static int run_options(struct sockmap_options *options, int cg_fd,  int test)  in run_options()  argument
968 err = sockmap_init_sockets(options->verbose); in run_options()
1214 options->drop_expected = true; in run_options()
1217 err = forever_ping_pong(options->rate, options); in run_options()
1219 options->base = false; in run_options()
1220 options->sendpage = false; in run_options()
1221 err = sendmsg_test(options); in run_options()
1223 options->base = false; in run_options()
1224 options->sendpage = true; in run_options()
1225 err = sendmsg_test(options); in run_options()
1227 options->base = true; in run_options()
1228 options->sendpage = false; in run_options()
1229 err = sendmsg_test(options); in run_options()
1231 options->base = true; in run_options()
1232 options->sendpage = true; in run_options()
1233 err = sendmsg_test(options); in run_options()
1277 static void test_options(char *options) in test_options() argument
1281 memset(options, 0, OPTSTRING); in test_options()
1284 strncat(options, "pass,", OPTSTRING); in test_options()
1286 strncat(options, "redir,", OPTSTRING); in test_options()
1288 strncat(options, "drop,", OPTSTRING); in test_options()
1291 strncat(options, tstr, OPTSTRING); in test_options()
1295 strncat(options, tstr, OPTSTRING); in test_options()
1299 strncat(options, tstr, OPTSTRING); in test_options()
1303 strncat(options, tstr, OPTSTRING); in test_options()
1308 strncat(options, tstr, OPTSTRING); in test_options()
1311 strncat(options, "ingress,", OPTSTRING); in test_options()
1313 strncat(options, "redir_skb,", OPTSTRING); in test_options()
1315 strncat(options, "ktls_skb,", OPTSTRING); in test_options()
1317 strncat(options, "ktls,", OPTSTRING); in test_options()
1319 strncat(options, "peek,", OPTSTRING); in test_options()
1324 char *options = calloc(OPTSTRING, sizeof(char)); in __test_exec() local
1337 test_options(options); in __test_exec()
1343 test_to_str(test), options); in __test_exec()
1351 free(options); in __test_exec()
1881 struct sockmap_options options = {0}; in main() local
1927 options.verbose = 1; in main()
1929 options.verbose = atoi(optarg); in main()
1938 options.data_test = true; in main()
1957 options.whitelist = strdup(optarg); in main()
1958 if (!options.whitelist) in main()
1962 options.blacklist = strdup(optarg); in main()
1963 if (!options.blacklist) in main()
1982 err = test_selftest(cg_fd, &options); in main()
1997 options.iov_count = iov_count; in main()
1998 options.iov_length = length; in main()
1999 options.rate = rate; in main()
2001 err = run_options(&options, cg_fd, test); in main()
2003 if (options.whitelist) in main()
2004 free(options.whitelist); in main()
2005 if (options.blacklist) in main()
2006 free(options.blacklist); in main()