Lines Matching refs:test_spec

119 static char *mode_string(struct test_spec *test)  in mode_string()
133 static void report_failure(struct test_spec *test) in report_failure()
381 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init()
429 static void test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_spec_init()
456 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
461 static void test_spec_set_name(struct test_spec *test, const char *name) in test_spec_set_name()
466 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog()
476 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu()
527 static void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default()
641 static void pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace()
665 static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) in pkt_stream_replace_half()
671 static void pkt_stream_receive_half(struct test_spec *test) in pkt_stream_receive_half()
760 static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) in pkt_stream_generate_custom()
967 static int receive_pkts(struct test_spec *test, struct pollfd *fds) in receive_pkts()
1216 static int send_pkts(struct test_spec *test, struct ifobject *ifobject) in send_pkts()
1351 static void xsk_configure_socket(struct test_spec *test, struct ifobject *ifobject, in xsk_configure_socket()
1376 static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops_tx()
1429 static void thread_common_ops(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops()
1467 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx()
1492 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx()
1545 static bool xdp_prog_changed_rx(struct test_spec *test) in xdp_prog_changed_rx()
1552 static bool xdp_prog_changed_tx(struct test_spec *test) in xdp_prog_changed_tx()
1582 static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, in xsk_attach_xdp_progs()
1595 static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, in __testapp_validate_traffic()
1661 static int testapp_validate_traffic(struct test_spec *test) in testapp_validate_traffic()
1676 static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) in testapp_validate_traffic_single_thread()
1681 static int testapp_teardown(struct test_spec *test) in testapp_teardown()
1707 static int testapp_bidi(struct test_spec *test) in testapp_bidi()
1740 static int testapp_bpf_res(struct test_spec *test) in testapp_bpf_res()
1752 static int testapp_headroom(struct test_spec *test) in testapp_headroom()
1759 static int testapp_stats_rx_dropped(struct test_spec *test) in testapp_stats_rx_dropped()
1775 static int testapp_stats_tx_invalid_descs(struct test_spec *test) in testapp_stats_tx_invalid_descs()
1783 static int testapp_stats_rx_full(struct test_spec *test) in testapp_stats_rx_full()
1796 static int testapp_stats_fill_empty(struct test_spec *test) in testapp_stats_fill_empty()
1808 static int testapp_unaligned(struct test_spec *test) in testapp_unaligned()
1819 static int testapp_unaligned_mb(struct test_spec *test) in testapp_unaligned_mb()
1829 static int testapp_single_pkt(struct test_spec *test) in testapp_single_pkt()
1837 static int testapp_multi_buffer(struct test_spec *test) in testapp_multi_buffer()
1846 static int testapp_invalid_desc_mb(struct test_spec *test) in testapp_invalid_desc_mb()
1886 static int testapp_invalid_desc(struct test_spec *test) in testapp_invalid_desc()
1931 static int testapp_xdp_drop(struct test_spec *test) in testapp_xdp_drop()
1944 static int testapp_xdp_metadata_count(struct test_spec *test) in testapp_xdp_metadata_count()
1967 static int testapp_poll_txq_tmout(struct test_spec *test) in testapp_poll_txq_tmout()
1978 static int testapp_poll_rxq_tmout(struct test_spec *test) in testapp_poll_rxq_tmout()
1985 static int testapp_too_many_frags(struct test_spec *test) in testapp_too_many_frags()
2094 static void run_pkt_test(struct test_spec *test, enum test_mode mode, enum test_type type) in run_pkt_test()
2300 struct test_spec test; in main()