Lines Matching defs:test

121 #define busy_poll_string(test) (test)->ifobj_tx->busy_poll ? "BUSY-POLL " : ""  argument
122 static char *mode_string(struct test_spec *test) in mode_string()
136 static void report_failure(struct test_spec *test) in report_failure()
412 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init()
467 static void test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_spec_init()
497 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
502 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog()
512 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu()
565 static void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default()
693 static void pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace()
716 static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) in pkt_stream_replace_half()
722 static void pkt_stream_receive_half(struct test_spec *test) in pkt_stream_receive_half()
736 static void pkt_stream_even_odd_sequence(struct test_spec *test) in pkt_stream_even_odd_sequence()
837 static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) in pkt_stream_generate_custom()
1054 static int __receive_pkts(struct test_spec *test, struct xsk_socket_info *xsk) in __receive_pkts()
1174 bool all_packets_received(struct test_spec *test, struct xsk_socket_info *xsk, u32 sock_num, in all_packets_received()
1193 static int receive_pkts(struct test_spec *test) in receive_pkts()
1379 bool all_packets_sent(struct test_spec *test, unsigned long *bitmap) in all_packets_sent()
1384 static int send_pkts(struct test_spec *test, struct ifobject *ifobject) in send_pkts()
1537 static void xsk_configure_socket(struct test_spec *test, struct ifobject *ifobject, in xsk_configure_socket()
1562 static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops_tx()
1615 static void thread_common_ops(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops()
1657 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx() local
1680 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx() local
1730 static bool xdp_prog_changed_rx(struct test_spec *test) in xdp_prog_changed_rx()
1737 static bool xdp_prog_changed_tx(struct test_spec *test) in xdp_prog_changed_tx()
1767 static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, in xsk_attach_xdp_progs()
1780 static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, in __testapp_validate_traffic()
1852 static int testapp_validate_traffic(struct test_spec *test) in testapp_validate_traffic()
1867 static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) in testapp_validate_traffic_single_thread()
1872 static int testapp_teardown(struct test_spec *test) in testapp_teardown()
1897 static int testapp_bidirectional(struct test_spec *test) in testapp_bidirectional()
1915 static int swap_xsk_resources(struct test_spec *test) in swap_xsk_resources()
1933 static int testapp_xdp_prog_cleanup(struct test_spec *test) in testapp_xdp_prog_cleanup()
1945 static int testapp_headroom(struct test_spec *test) in testapp_headroom()
1951 static int testapp_stats_rx_dropped(struct test_spec *test) in testapp_stats_rx_dropped()
1966 static int testapp_stats_tx_invalid_descs(struct test_spec *test) in testapp_stats_tx_invalid_descs()
1973 static int testapp_stats_rx_full(struct test_spec *test) in testapp_stats_rx_full()
1984 static int testapp_stats_fill_empty(struct test_spec *test) in testapp_stats_fill_empty()
1994 static int testapp_send_receive_unaligned(struct test_spec *test) in testapp_send_receive_unaligned()
2004 static int testapp_send_receive_unaligned_mb(struct test_spec *test) in testapp_send_receive_unaligned_mb()
2013 static int testapp_single_pkt(struct test_spec *test) in testapp_single_pkt()
2021 static int testapp_send_receive_mb(struct test_spec *test) in testapp_send_receive_mb()
2029 static int testapp_invalid_desc_mb(struct test_spec *test) in testapp_invalid_desc_mb()
2069 static int testapp_invalid_desc(struct test_spec *test) in testapp_invalid_desc()
2114 static int testapp_xdp_drop(struct test_spec *test) in testapp_xdp_drop()
2126 static int testapp_xdp_metadata_copy(struct test_spec *test) in testapp_xdp_metadata_copy()
2153 static int testapp_xdp_shared_umem(struct test_spec *test) in testapp_xdp_shared_umem()
2170 static int testapp_poll_txq_tmout(struct test_spec *test) in testapp_poll_txq_tmout()
2179 static int testapp_poll_rxq_tmout(struct test_spec *test) in testapp_poll_rxq_tmout()
2185 static int testapp_too_many_frags(struct test_spec *test) in testapp_too_many_frags()
2289 static int testapp_send_receive(struct test_spec *test) in testapp_send_receive()
2294 static int testapp_send_receive_2k_frame(struct test_spec *test) in testapp_send_receive_2k_frame()
2302 static int testapp_poll_rx(struct test_spec *test) in testapp_poll_rx()
2308 static int testapp_poll_tx(struct test_spec *test) in testapp_poll_tx()
2314 static int testapp_aligned_inv_desc(struct test_spec *test) in testapp_aligned_inv_desc()
2319 static int testapp_aligned_inv_desc_2k_frame(struct test_spec *test) in testapp_aligned_inv_desc_2k_frame()
2326 static int testapp_unaligned_inv_desc(struct test_spec *test) in testapp_unaligned_inv_desc()
2333 static int testapp_unaligned_inv_desc_4001_frame(struct test_spec *test) in testapp_unaligned_inv_desc_4001_frame()
2353 static int testapp_aligned_inv_desc_mb(struct test_spec *test) in testapp_aligned_inv_desc_mb()
2358 static int testapp_unaligned_inv_desc_mb(struct test_spec *test) in testapp_unaligned_inv_desc_mb()
2365 static int testapp_xdp_metadata(struct test_spec *test) in testapp_xdp_metadata()
2370 static int testapp_xdp_metadata_mb(struct test_spec *test) in testapp_xdp_metadata_mb()
2376 static void run_pkt_test(struct test_spec *test) in run_pkt_test()
2498 struct test_spec test; in main() local