Lines Matching refs:test_spec
130 static char *mode_string(struct test_spec *test) in mode_string()
144 static void report_failure(struct test_spec *test) in report_failure()
476 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init()
538 static void test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_spec_init()
540 const struct test_spec *test_to_run) in test_spec_init()
568 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
573 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog()
583 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu()
636 static void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default()
769 static void pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace()
788 static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) in pkt_stream_replace_half()
794 static void pkt_stream_receive_half(struct test_spec *test) in pkt_stream_receive_half()
808 static void pkt_stream_even_odd_sequence(struct test_spec *test) in pkt_stream_even_odd_sequence()
909 static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) in pkt_stream_generate_custom()
1185 static int __receive_pkts(struct test_spec *test, struct xsk_socket_info *xsk) in __receive_pkts()
1305 bool all_packets_received(struct test_spec *test, struct xsk_socket_info *xsk, u32 sock_num, in all_packets_received()
1324 static int receive_pkts(struct test_spec *test) in receive_pkts()
1511 bool all_packets_sent(struct test_spec *test, unsigned long *bitmap) in all_packets_sent()
1516 static int send_pkts(struct test_spec *test, struct ifobject *ifobject) in send_pkts()
1669 static void xsk_configure_socket(struct test_spec *test, struct ifobject *ifobject, in xsk_configure_socket()
1694 static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops_tx()
1747 static void thread_common_ops(struct test_spec *test, struct ifobject *ifobject) in thread_common_ops()
1789 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx()
1812 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx()
1867 static bool xdp_prog_changed_rx(struct test_spec *test) in xdp_prog_changed_rx()
1874 static bool xdp_prog_changed_tx(struct test_spec *test) in xdp_prog_changed_tx()
1904 static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, in xsk_attach_xdp_progs()
1917 static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, in __testapp_validate_traffic()
1989 static int testapp_validate_traffic(struct test_spec *test) in testapp_validate_traffic()
2016 static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) in testapp_validate_traffic_single_thread()
2021 static int testapp_teardown(struct test_spec *test) in testapp_teardown()
2046 static int testapp_bidirectional(struct test_spec *test) in testapp_bidirectional()
2064 static int swap_xsk_resources(struct test_spec *test) in swap_xsk_resources()
2082 static int testapp_xdp_prog_cleanup(struct test_spec *test) in testapp_xdp_prog_cleanup()
2094 static int testapp_headroom(struct test_spec *test) in testapp_headroom()
2100 static int testapp_stats_rx_dropped(struct test_spec *test) in testapp_stats_rx_dropped()
2115 static int testapp_stats_tx_invalid_descs(struct test_spec *test) in testapp_stats_tx_invalid_descs()
2122 static int testapp_stats_rx_full(struct test_spec *test) in testapp_stats_rx_full()
2133 static int testapp_stats_fill_empty(struct test_spec *test) in testapp_stats_fill_empty()
2143 static int testapp_send_receive_unaligned(struct test_spec *test) in testapp_send_receive_unaligned()
2153 static int testapp_send_receive_unaligned_mb(struct test_spec *test) in testapp_send_receive_unaligned_mb()
2162 static int testapp_single_pkt(struct test_spec *test) in testapp_single_pkt()
2170 static int testapp_send_receive_mb(struct test_spec *test) in testapp_send_receive_mb()
2178 static int testapp_invalid_desc_mb(struct test_spec *test) in testapp_invalid_desc_mb()
2218 static int testapp_invalid_desc(struct test_spec *test) in testapp_invalid_desc()
2263 static int testapp_xdp_drop(struct test_spec *test) in testapp_xdp_drop()
2275 static int testapp_xdp_metadata_copy(struct test_spec *test) in testapp_xdp_metadata_copy()
2302 static int testapp_xdp_shared_umem(struct test_spec *test) in testapp_xdp_shared_umem()
2319 static int testapp_poll_txq_tmout(struct test_spec *test) in testapp_poll_txq_tmout()
2328 static int testapp_poll_rxq_tmout(struct test_spec *test) in testapp_poll_rxq_tmout()
2334 static int testapp_too_many_frags(struct test_spec *test) in testapp_too_many_frags()
2452 static int testapp_send_receive(struct test_spec *test) in testapp_send_receive()
2457 static int testapp_send_receive_2k_frame(struct test_spec *test) in testapp_send_receive_2k_frame()
2465 static int testapp_poll_rx(struct test_spec *test) in testapp_poll_rx()
2471 static int testapp_poll_tx(struct test_spec *test) in testapp_poll_tx()
2477 static int testapp_aligned_inv_desc(struct test_spec *test) in testapp_aligned_inv_desc()
2482 static int testapp_aligned_inv_desc_2k_frame(struct test_spec *test) in testapp_aligned_inv_desc_2k_frame()
2489 static int testapp_unaligned_inv_desc(struct test_spec *test) in testapp_unaligned_inv_desc()
2496 static int testapp_unaligned_inv_desc_4001_frame(struct test_spec *test) in testapp_unaligned_inv_desc_4001_frame()
2516 static int testapp_aligned_inv_desc_mb(struct test_spec *test) in testapp_aligned_inv_desc_mb()
2521 static int testapp_unaligned_inv_desc_mb(struct test_spec *test) in testapp_unaligned_inv_desc_mb()
2528 static int testapp_xdp_metadata(struct test_spec *test) in testapp_xdp_metadata()
2533 static int testapp_xdp_metadata_mb(struct test_spec *test) in testapp_xdp_metadata_mb()
2539 static int testapp_hw_sw_min_ring_size(struct test_spec *test) in testapp_hw_sw_min_ring_size()
2559 static int testapp_hw_sw_max_ring_size(struct test_spec *test) in testapp_hw_sw_max_ring_size()
2587 static int testapp_xdp_adjust_tail(struct test_spec *test, int adjust_value) in testapp_xdp_adjust_tail()
2601 static int testapp_adjust_tail(struct test_spec *test, u32 value, u32 pkt_len) in testapp_adjust_tail()
2625 static int testapp_adjust_tail_shrink(struct test_spec *test) in testapp_adjust_tail_shrink()
2631 static int testapp_adjust_tail_shrink_mb(struct test_spec *test) in testapp_adjust_tail_shrink_mb()
2638 static int testapp_adjust_tail_grow(struct test_spec *test) in testapp_adjust_tail_grow()
2644 static int testapp_adjust_tail_grow_mb(struct test_spec *test) in testapp_adjust_tail_grow_mb()
2652 static int testapp_tx_queue_consumer(struct test_spec *test) in testapp_tx_queue_consumer()
2669 static void run_pkt_test(struct test_spec *test) in run_pkt_test()
2741 static const struct test_spec tests[] = {
2798 struct test_spec test; in main()