Lines Matching refs:opt

327 			     struct sockmap_options *opt)  in msg_loop_sendpage()  argument
329 bool drop = opt->drop_expected; in msg_loop_sendpage()
444 struct sockmap_options *opt) in msg_loop() argument
448 bool drop = opt->drop_expected; in msg_loop()
449 bool data = opt->data_test; in msg_loop()
522 if (opt->verbose) in msg_loop()
554 int chunk_sz = opt->sendpage ? in msg_loop()
598 static int sendmsg_test(struct sockmap_options *opt) in sendmsg_test() argument
603 int iov_count = opt->iov_count; in sendmsg_test()
604 int iov_buf = opt->iov_length; in sendmsg_test()
606 int cnt = opt->rate; in sendmsg_test()
610 if (opt->base) in sendmsg_test()
621 err = sockmap_init_ktls(opt->verbose, rx_fd); in sendmsg_test()
625 err = sockmap_init_ktls(opt->verbose, c1); in sendmsg_test()
632 if (opt->drop_expected) in sendmsg_test()
635 if (opt->sendpage) in sendmsg_test()
638 cnt, &s, false, opt); in sendmsg_test()
639 if (opt->verbose) in sendmsg_test()
647 if (opt->verbose) in sendmsg_test()
663 if (opt->sendpage) in sendmsg_test()
664 err = msg_loop_sendpage(c1, iov_buf, cnt, &s, opt); in sendmsg_test()
667 cnt, &s, true, opt); in sendmsg_test()
677 if (opt->verbose) in sendmsg_test()
706 static int forever_ping_pong(int rate, struct sockmap_options *opt) in forever_ping_pong() argument
771 if (opt->verbose) { in forever_ping_pong()
1150 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec() argument
1156 opt->sendpage = true; in __test_exec()
1158 opt->sendpage = false; in __test_exec()
1161 opt->drop_expected = true; in __test_exec()
1163 opt->drop_expected = false; in __test_exec()
1169 test_cnt, opt->rate, opt->iov_count, opt->iov_length, in __test_exec()
1172 err = run_options(opt, cgrp, test); in __test_exec()
1180 static int test_exec(int cgrp, struct sockmap_options *opt) in test_exec() argument
1182 int err = __test_exec(cgrp, SENDMSG, opt); in test_exec()
1187 err = __test_exec(cgrp, SENDPAGE, opt); in test_exec()
1194 struct sockmap_options opt; in test_loop() local
1198 opt.verbose = 0; in test_loop()
1199 opt.base = false; in test_loop()
1200 opt.sendpage = false; in test_loop()
1201 opt.data_test = false; in test_loop()
1202 opt.drop_expected = false; in test_loop()
1203 opt.iov_count = 0; in test_loop()
1204 opt.iov_length = 0; in test_loop()
1205 opt.rate = 0; in test_loop()
1210 opt.rate = r; in test_loop()
1211 opt.iov_count = i; in test_loop()
1212 opt.iov_length = l; in test_loop()
1213 err = test_exec(cgrp, &opt); in test_loop()
1263 static int test_send(struct sockmap_options *opt, int cgrp) in test_send() argument
1267 opt->iov_length = 1; in test_send()
1268 opt->iov_count = 1; in test_send()
1269 opt->rate = 1; in test_send()
1270 err = test_exec(cgrp, opt); in test_send()
1274 opt->iov_length = 1; in test_send()
1275 opt->iov_count = 1024; in test_send()
1276 opt->rate = 1; in test_send()
1277 err = test_exec(cgrp, opt); in test_send()
1281 opt->iov_length = 1024; in test_send()
1282 opt->iov_count = 1; in test_send()
1283 opt->rate = 1; in test_send()
1284 err = test_exec(cgrp, opt); in test_send()
1288 opt->iov_length = 1; in test_send()
1289 opt->iov_count = 1; in test_send()
1290 opt->rate = 512; in test_send()
1291 err = test_exec(cgrp, opt); in test_send()
1295 opt->iov_length = 256; in test_send()
1296 opt->iov_count = 1024; in test_send()
1297 opt->rate = 2; in test_send()
1298 err = test_exec(cgrp, opt); in test_send()
1302 opt->rate = 100; in test_send()
1303 opt->iov_count = 1; in test_send()
1304 opt->iov_length = 5; in test_send()
1305 err = test_exec(cgrp, opt); in test_send()
1315 struct sockmap_options opt = {0}; in test_mixed() local
1329 err = test_send(&opt, cgrp); in test_mixed()
1337 err = test_send(&opt, cgrp); in test_mixed()
1345 err = test_send(&opt, cgrp); in test_mixed()
1353 err = test_send(&opt, cgrp); in test_mixed()
1361 err = test_send(&opt, cgrp); in test_mixed()
1369 err = test_send(&opt, cgrp); in test_mixed()
1377 err = test_send(&opt, cgrp); in test_mixed()
1385 err = test_send(&opt, cgrp); in test_mixed()
1393 err = test_send(&opt, cgrp); in test_mixed()
1401 err = test_send(&opt, cgrp); in test_mixed()
1409 err = test_send(&opt, cgrp); in test_mixed()
1417 err = test_send(&opt, cgrp); in test_mixed()
1425 err = test_send(&opt, cgrp); in test_mixed()
1434 struct sockmap_options opt = {0}; in test_start_end() local
1460 opt.rate = 16; in test_start_end()
1461 opt.iov_count = 1; in test_start_end()
1462 opt.iov_length = 100; in test_start_end()
1473 err = test_exec(cgrp, &opt); in test_start_end()
1482 err = test_exec(cgrp, &opt); in test_start_end()
1495 err = test_exec(cgrp, &opt); in test_start_end()
1505 err = test_exec(cgrp, &opt); in test_start_end()
1512 err = test_exec(cgrp, &opt); in test_start_end()
1523 err = test_exec(cgrp, &opt); in test_start_end()
1530 err = test_exec(cgrp, &opt); in test_start_end()
1539 err = test_exec(cgrp, &opt); in test_start_end()
1548 err = test_exec(cgrp, &opt); in test_start_end()
1557 err = test_exec(cgrp, &opt); in test_start_end()
1564 err = test_exec(cgrp, &opt); in test_start_end()
1571 err = test_exec(cgrp, &opt); in test_start_end()
1734 int opt, longindex, err, cg_fd = 0; in main() local
1741 while ((opt = getopt_long(argc, argv, ":dhvc:r:i:l:t:p:q:", in main()
1743 switch (opt) { in main()