Lines Matching defs:test

96 	{"test",	required_argument,	NULL, 't' },
520 /* Special case test for skb ingress + ktls */
756 * socket is not a valid test. So in this case lets not
757 * enable kTLS but still run the test.
953 static int run_options(struct sockmap_options *options, int cg_fd, int test)
957 /* If base test skip BPF setup */
958 if (test == BASE || test == BASE_SENDPAGE)
1014 fprintf(stderr, "ERROR: test socket failed: %d\n", err);
1229 int skb_fd = (test == SENDMSG || test == SENDPAGE) ?
1260 if (test == PING_PONG)
1262 else if (test == SENDMSG) {
1266 } else if (test == SENDPAGE) {
1270 } else if (test == BASE) {
1274 } else if (test == BASE_SENDPAGE) {
1279 fprintf(stderr, "unknown test\n");
1309 static char *test_to_str(int test)
1311 switch (test) {
1376 static int __test_exec(int cgrp, int test, struct sockmap_options *opt)
1381 if (test == SENDPAGE)
1397 test_to_str(test), options);
1400 err = run_options(opt, cgrp, test);
1523 * expected from test receiver side. e.g. has enough
1524 * bytes to write test code.
1859 struct _test test[] = {
1860 {"txmsg test passthrough", test_txmsg_pass},
1861 {"txmsg test redirect", test_txmsg_redir},
1862 {"txmsg test redirect wait send mem", test_txmsg_redir_wait_sndmem},
1863 {"txmsg test drop", test_txmsg_drop},
1864 {"txmsg test ingress redirect", test_txmsg_ingress_redir},
1865 {"txmsg test skb", test_txmsg_skb},
1866 {"txmsg test apply", test_txmsg_apply},
1867 {"txmsg test cork", test_txmsg_cork},
1868 {"txmsg test hanging corks", test_txmsg_cork_hangs},
1869 {"txmsg test push_data", test_txmsg_push},
1870 {"txmsg test pull-data", test_txmsg_pull},
1871 {"txmsg test pop-data", test_txmsg_pop},
1872 {"txmsg test push/pop data", test_txmsg_push_pop},
1873 {"txmsg test ingress parser", test_txmsg_ingress_parser},
1874 {"txmsg test ingress parser2", test_txmsg_ingress_parser2},
1928 for (i = 0; i < ARRAY_SIZE(test); i++) {
1929 struct _test t = test[i];
1981 int test = SELFTESTS;
2039 test = PING_PONG;
2041 test = SENDMSG;
2043 test = BASE;
2045 test = BASE_SENDPAGE;
2047 test = SENDPAGE;
2081 if (test == SELFTESTS) {
2101 err = run_options(&options, cg_fd, test);