Lines Matching refs:ifobj_rx

331 static void parse_command_line(struct ifobject *ifobj_tx, struct ifobject *ifobj_rx, int argc,  in parse_command_line()  argument
352 ifobj = ifobj_rx; in parse_command_line()
377 struct ifobject *ifobj_rx) in __test_spec_init() argument
382 struct ifobject *ifobj = i ? ifobj_rx : ifobj_tx; in __test_spec_init()
408 test->ifobj_rx = ifobj_rx; in __test_spec_init()
415 struct ifobject *ifobj_rx, enum test_mode mode) in test_spec_init() argument
425 struct ifobject *ifobj = i ? ifobj_rx : ifobj_tx; in test_spec_init()
436 __test_spec_init(test, ifobj_tx, ifobj_rx); in test_spec_init()
441 __test_spec_init(test, test->ifobj_tx, test->ifobj_rx); in test_spec_reset()
485 test->ifobj_rx->pkt_stream = test->pkt_stream_default; in pkt_stream_restore_default()
542 test->ifobj_rx->pkt_stream = pkt_stream; in pkt_stream_replace()
558 test->ifobj_rx->pkt_stream = pkt_stream; in pkt_stream_replace_half()
597 test->ifobj_rx->pkt_stream = pkt_stream; in pkt_stream_generate_custom()
1047 struct ifobject *ifobject = test->ifobj_rx; in worker_testapp_validate_rx()
1074 struct ifobject *ifobj_rx = test->ifobj_rx; in testapp_validate_traffic() local
1081 pkt_stream_reset(ifobj_rx->pkt_stream); in testapp_validate_traffic()
1085 pthread_create(&t0, NULL, ifobj_rx->func_ptr, test); in testapp_validate_traffic()
1125 test->ifobj_rx->tx_on = true; in testapp_bidi()
1130 swap_directions(&test->ifobj_rx, &test->ifobj_tx); in testapp_bidi()
1133 swap_directions(&test->ifobj_rx, &test->ifobj_tx); in testapp_bidi()
1136 static void swap_xsk_resources(struct ifobject *ifobj_tx, struct ifobject *ifobj_rx) in swap_xsk_resources() argument
1140 xsk_socket__delete(ifobj_rx->xsk->xsk); in swap_xsk_resources()
1141 xsk_umem__delete(ifobj_rx->umem->umem); in swap_xsk_resources()
1144 ifobj_rx->umem = &ifobj_rx->umem_arr[1]; in swap_xsk_resources()
1145 ifobj_rx->xsk = &ifobj_rx->xsk_arr[1]; in swap_xsk_resources()
1155 swap_xsk_resources(test->ifobj_tx, test->ifobj_rx); in testapp_bpf_res()
1162 test->ifobj_rx->umem->frame_headroom = UMEM_HEADROOM_TEST_SIZE; in testapp_headroom()
1179 test->ifobj_rx->umem->frame_headroom = test->ifobj_rx->umem->frame_size - in testapp_stats()
1185 test->ifobj_rx->xsk->rxqsize = RX_FULL_RXQSIZE; in testapp_stats()
1197 test->ifobj_rx->pkt_stream = pkt_stream_generate(test->ifobj_rx->umem, 0, in testapp_stats()
1199 if (!test->ifobj_rx->pkt_stream) in testapp_stats()
1201 test->ifobj_rx->pkt_stream->use_addr_for_fill = true; in testapp_stats()
1239 test->ifobj_rx->umem->unaligned_mode = true; in testapp_unaligned()
1242 test->ifobj_rx->pkt_stream->use_addr_for_fill = true; in testapp_unaligned()
1346 test->ifobj_rx->umem->frame_size = 2048; in run_pkt_test()
1354 test->ifobj_rx->use_poll = true; in run_pkt_test()
1365 test->ifobj_rx->umem->frame_size = 2048; in run_pkt_test()
1371 test->ifobj_rx->umem->unaligned_mode = true; in run_pkt_test()
1424 struct ifobject *ifobj_tx, *ifobj_rx; in main() local
1434 ifobj_rx = ifobject_create(); in main()
1435 if (!ifobj_rx) in main()
1440 parse_command_line(ifobj_tx, ifobj_rx, argc, argv); in main()
1442 if (!validate_interface(ifobj_tx) || !validate_interface(ifobj_rx)) { in main()
1449 init_iface(ifobj_rx, MAC2, MAC1, IP2, IP1, UDP_PORT2, UDP_PORT1, in main()
1452 test_spec_init(&test, ifobj_tx, ifobj_rx, 0); in main()
1462 test_spec_init(&test, ifobj_tx, ifobj_rx, i); in main()
1469 ifobject_delete(ifobj_rx); in main()