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()
1287 static void test_options(char *options) in test_options() argument
1291 memset(options, 0, OPTSTRING); in test_options()
1294 append_str(options, "pass,", OPTSTRING); in test_options()
1296 append_str(options, "redir,", OPTSTRING); in test_options()
1298 append_str(options, "drop,", OPTSTRING); in test_options()
1301 append_str(options, tstr, OPTSTRING); in test_options()
1305 append_str(options, tstr, OPTSTRING); in test_options()
1309 append_str(options, tstr, OPTSTRING); in test_options()
1313 append_str(options, tstr, OPTSTRING); in test_options()
1318 append_str(options, tstr, OPTSTRING); in test_options()
1321 append_str(options, "ingress,", OPTSTRING); in test_options()
1323 append_str(options, "redir_skb,", OPTSTRING); in test_options()
1325 append_str(options, "ktls_skb,", OPTSTRING); in test_options()
1327 append_str(options, "ktls,", OPTSTRING); in test_options()
1329 append_str(options, "peek,", OPTSTRING); in test_options()
1334 char *options = calloc(OPTSTRING, sizeof(char)); in __test_exec() local
1347 test_options(options); in __test_exec()
1353 test_to_str(test), options); in __test_exec()
1361 free(options); in __test_exec()
1891 struct sockmap_options options = {0}; in main() local
1937 options.verbose = 1; in main()
1939 options.verbose = atoi(optarg); in main()
1948 options.data_test = true; in main()
1967 options.whitelist = strdup(optarg); in main()
1968 if (!options.whitelist) in main()
1972 options.blacklist = strdup(optarg); in main()
1973 if (!options.blacklist) in main()
1992 err = test_selftest(cg_fd, &options); in main()
2007 options.iov_count = iov_count; in main()
2008 options.iov_length = length; in main()
2009 options.rate = rate; in main()
2011 err = run_options(&options, cg_fd, test); in main()
2013 if (options.whitelist) in main()
2014 free(options.whitelist); in main()
2015 if (options.blacklist) in main()
2016 free(options.blacklist); in main()