Lines Matching refs:t_params

3611 print_enc_throughput(struct thread_params *t_params, unsigned int used_cores)  in print_enc_throughput()  argument
3619 t_params[iter].lcore_id, t_params[iter].ops_per_sec, in print_enc_throughput()
3620 t_params[iter].mbps); in print_enc_throughput()
3621 total_mops += t_params[iter].ops_per_sec; in print_enc_throughput()
3622 total_mbps += t_params[iter].mbps; in print_enc_throughput()
3631 print_dec_throughput(struct thread_params *t_params, unsigned int used_cores) in print_dec_throughput() argument
3640 t_params[core_idx].lcore_id, in print_dec_throughput()
3641 t_params[core_idx].ops_per_sec, in print_dec_throughput()
3642 t_params[core_idx].mbps, in print_dec_throughput()
3643 t_params[core_idx].iter_count); in print_dec_throughput()
3644 total_mops += t_params[core_idx].ops_per_sec; in print_dec_throughput()
3645 total_mbps += t_params[core_idx].mbps; in print_dec_throughput()
3647 t_params[core_idx].iter_count); in print_dec_throughput()
3656 print_dec_bler(struct thread_params *t_params, unsigned int used_cores) in print_dec_bler() argument
3664 t_params[core_idx].lcore_id, in print_dec_bler()
3665 t_params[core_idx].bler * 100, in print_dec_bler()
3666 t_params[core_idx].iter_average, in print_dec_bler()
3667 t_params[core_idx].mbps, in print_dec_bler()
3669 total_mbps += t_params[core_idx].mbps; in print_dec_bler()
3670 total_bler += t_params[core_idx].bler; in print_dec_bler()
3671 total_iter += t_params[core_idx].iter_average; in print_dec_bler()
3690 struct thread_params *t_params; in bler_test() local
3716 t_params = rte_zmalloc(NULL, num_lcores * sizeof(struct thread_params), in bler_test()
3718 TEST_ASSERT_NOT_NULL(t_params, "Failed to alloc %zuB for t_params", in bler_test()
3734 t_params[0].dev_id = ad->dev_id; in bler_test()
3735 t_params[0].lcore_id = rte_lcore_id(); in bler_test()
3736 t_params[0].op_params = op_params; in bler_test()
3737 t_params[0].queue_id = ad->queue_ids[used_cores++]; in bler_test()
3738 t_params[0].iter_count = 0; in bler_test()
3744 t_params[used_cores].dev_id = ad->dev_id; in bler_test()
3745 t_params[used_cores].lcore_id = lcore_id; in bler_test()
3746 t_params[used_cores].op_params = op_params; in bler_test()
3747 t_params[used_cores].queue_id = ad->queue_ids[used_cores]; in bler_test()
3748 t_params[used_cores].iter_count = 0; in bler_test()
3751 &t_params[used_cores++], lcore_id); in bler_test()
3755 ret = bler_function(&t_params[0]); in bler_test()
3759 ret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id); in bler_test()
3761 print_dec_bler(t_params, num_lcores); in bler_test()
3765 rte_free(t_params); in bler_test()
3770 rte_free(t_params); in bler_test()
3784 struct thread_params *t_params, *tp; in throughput_test() local
3810 t_params = rte_zmalloc(NULL, num_lcores * sizeof(struct thread_params), in throughput_test()
3812 TEST_ASSERT_NOT_NULL(t_params, "Failed to alloc %zuB for t_params", in throughput_test()
3831 t_params); in throughput_test()
3833 rte_free(t_params); in throughput_test()
3852 t_params[0].dev_id = ad->dev_id; in throughput_test()
3853 t_params[0].lcore_id = rte_lcore_id(); in throughput_test()
3854 t_params[0].op_params = op_params; in throughput_test()
3855 t_params[0].queue_id = ad->queue_ids[used_cores++]; in throughput_test()
3856 t_params[0].iter_count = 0; in throughput_test()
3862 t_params[used_cores].dev_id = ad->dev_id; in throughput_test()
3863 t_params[used_cores].lcore_id = lcore_id; in throughput_test()
3864 t_params[used_cores].op_params = op_params; in throughput_test()
3865 t_params[used_cores].queue_id = ad->queue_ids[used_cores]; in throughput_test()
3866 t_params[used_cores].iter_count = 0; in throughput_test()
3869 &t_params[used_cores++], lcore_id); in throughput_test()
3873 ret = throughput_function(&t_params[0]); in throughput_test()
3877 ret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id); in throughput_test()
3881 rte_free(t_params); in throughput_test()
3889 print_dec_throughput(t_params, num_lcores); in throughput_test()
3891 print_enc_throughput(t_params, num_lcores); in throughput_test()
3892 rte_free(t_params); in throughput_test()
3901 tp = &t_params[0]; in throughput_test()
3914 tp = &t_params[used_cores]; in throughput_test()
3931 print_dec_throughput(t_params, num_lcores); in throughput_test()
3934 print_enc_throughput(t_params, num_lcores); in throughput_test()
3937 rte_free(t_params); in throughput_test()