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