Lines Matching defs:test

127 #define busy_poll_string(test) (test)->ifobj_tx->busy_poll ? "BUSY-POLL " : ""  argument
128 static char *mode_string(struct test_spec *test) in mode_string()
142 static void report_failure(struct test_spec *test) in report_failure()
474 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init()
534 static void test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_spec_init()
564 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
569 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog()
579 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu()
632 static void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default()
760 static void pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace()
783 static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) in pkt_stream_replace_half()
789 static void pkt_stream_receive_half(struct test_spec *test) in pkt_stream_receive_half()
803 static void pkt_stream_even_odd_sequence(struct test_spec *test) in pkt_stream_even_odd_sequence()
904 static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) in pkt_stream_generate_custom()
1121 static int __receive_pkts(struct test_spec *test, struct xsk_socket_info *xsk) in __receive_pkts()
1241 bool all_packets_received(struct test_spec *test, struct xsk_socket_info *xsk, u32 sock_num, in all_packets_received()
1260 static int receive_pkts(struct test_spec *test) in receive_pkts()
1447 bool all_packets_sent(struct test_spec *test, unsigned long *bitmap) in all_packets_sent()
1452 static int send_pkts(struct test_spec *test, struct ifobject *ifobject) in send_pkts()
1605 static void xsk_configure_socket(struct test_spec *test, struct ifobject *ifobject, in xsk_configure_socket()
1630 static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops_tx()
1683 static void thread_common_ops(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops()
1725 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx() local
1748 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx() local
1798 static bool xdp_prog_changed_rx(struct test_spec *test) in xdp_prog_changed_rx()
1805 static bool xdp_prog_changed_tx(struct test_spec *test) in xdp_prog_changed_tx()
1835 static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, in xsk_attach_xdp_progs()
1848 static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, in __testapp_validate_traffic()
1920 static int testapp_validate_traffic(struct test_spec *test) in testapp_validate_traffic()
1947 static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) in testapp_validate_traffic_single_thread()
1952 static int testapp_teardown(struct test_spec *test) in testapp_teardown()
1977 static int testapp_bidirectional(struct test_spec *test) in testapp_bidirectional()
1995 static int swap_xsk_resources(struct test_spec *test) in swap_xsk_resources()
2013 static int testapp_xdp_prog_cleanup(struct test_spec *test) in testapp_xdp_prog_cleanup()
2025 static int testapp_headroom(struct test_spec *test) in testapp_headroom()
2031 static int testapp_stats_rx_dropped(struct test_spec *test) in testapp_stats_rx_dropped()
2046 static int testapp_stats_tx_invalid_descs(struct test_spec *test) in testapp_stats_tx_invalid_descs()
2053 static int testapp_stats_rx_full(struct test_spec *test) in testapp_stats_rx_full()
2064 static int testapp_stats_fill_empty(struct test_spec *test) in testapp_stats_fill_empty()
2074 static int testapp_send_receive_unaligned(struct test_spec *test) in testapp_send_receive_unaligned()
2084 static int testapp_send_receive_unaligned_mb(struct test_spec *test) in testapp_send_receive_unaligned_mb()
2093 static int testapp_single_pkt(struct test_spec *test) in testapp_single_pkt()
2101 static int testapp_send_receive_mb(struct test_spec *test) in testapp_send_receive_mb()
2109 static int testapp_invalid_desc_mb(struct test_spec *test) in testapp_invalid_desc_mb()
2149 static int testapp_invalid_desc(struct test_spec *test) in testapp_invalid_desc()
2194 static int testapp_xdp_drop(struct test_spec *test) in testapp_xdp_drop()
2206 static int testapp_xdp_metadata_copy(struct test_spec *test) in testapp_xdp_metadata_copy()
2233 static int testapp_xdp_shared_umem(struct test_spec *test) in testapp_xdp_shared_umem()
2250 static int testapp_poll_txq_tmout(struct test_spec *test) in testapp_poll_txq_tmout()
2259 static int testapp_poll_rxq_tmout(struct test_spec *test) in testapp_poll_rxq_tmout()
2265 static int testapp_too_many_frags(struct test_spec *test) in testapp_too_many_frags()
2383 static int testapp_send_receive(struct test_spec *test) in testapp_send_receive()
2388 static int testapp_send_receive_2k_frame(struct test_spec *test) in testapp_send_receive_2k_frame()
2396 static int testapp_poll_rx(struct test_spec *test) in testapp_poll_rx()
2402 static int testapp_poll_tx(struct test_spec *test) in testapp_poll_tx()
2408 static int testapp_aligned_inv_desc(struct test_spec *test) in testapp_aligned_inv_desc()
2413 static int testapp_aligned_inv_desc_2k_frame(struct test_spec *test) in testapp_aligned_inv_desc_2k_frame()
2420 static int testapp_unaligned_inv_desc(struct test_spec *test) in testapp_unaligned_inv_desc()
2427 static int testapp_unaligned_inv_desc_4001_frame(struct test_spec *test) in testapp_unaligned_inv_desc_4001_frame()
2447 static int testapp_aligned_inv_desc_mb(struct test_spec *test) in testapp_aligned_inv_desc_mb()
2452 static int testapp_unaligned_inv_desc_mb(struct test_spec *test) in testapp_unaligned_inv_desc_mb()
2459 static int testapp_xdp_metadata(struct test_spec *test) in testapp_xdp_metadata()
2464 static int testapp_xdp_metadata_mb(struct test_spec *test) in testapp_xdp_metadata_mb()
2470 static int testapp_hw_sw_min_ring_size(struct test_spec *test) in testapp_hw_sw_min_ring_size()
2490 static int testapp_hw_sw_max_ring_size(struct test_spec *test) in testapp_hw_sw_max_ring_size()
2518 static void run_pkt_test(struct test_spec *test) in run_pkt_test()
2642 struct test_spec test; in main() local