Lines Matching refs:t_params

3640 print_enc_throughput(struct thread_params *t_params, unsigned int used_cores)  in print_enc_throughput()  argument
3648 t_params[iter].lcore_id, t_params[iter].ops_per_sec, in print_enc_throughput()
3649 t_params[iter].mbps); in print_enc_throughput()
3650 total_mops += t_params[iter].ops_per_sec; in print_enc_throughput()
3651 total_mbps += t_params[iter].mbps; in print_enc_throughput()
3660 print_dec_throughput(struct thread_params *t_params, unsigned int used_cores) in print_dec_throughput() argument
3669 t_params[core_idx].lcore_id, in print_dec_throughput()
3670 t_params[core_idx].ops_per_sec, in print_dec_throughput()
3671 t_params[core_idx].mbps, in print_dec_throughput()
3672 t_params[core_idx].iter_count); in print_dec_throughput()
3673 total_mops += t_params[core_idx].ops_per_sec; in print_dec_throughput()
3674 total_mbps += t_params[core_idx].mbps; in print_dec_throughput()
3676 t_params[core_idx].iter_count); in print_dec_throughput()
3685 print_dec_bler(struct thread_params *t_params, unsigned int used_cores) in print_dec_bler() argument
3693 t_params[core_idx].lcore_id, in print_dec_bler()
3694 t_params[core_idx].bler * 100, in print_dec_bler()
3695 t_params[core_idx].iter_average, in print_dec_bler()
3696 t_params[core_idx].mbps, in print_dec_bler()
3698 total_mbps += t_params[core_idx].mbps; in print_dec_bler()
3699 total_bler += t_params[core_idx].bler; in print_dec_bler()
3700 total_iter += t_params[core_idx].iter_average; in print_dec_bler()
3719 struct thread_params *t_params; in bler_test() local
3745 t_params = rte_zmalloc(NULL, num_lcores * sizeof(struct thread_params), in bler_test()
3747 TEST_ASSERT_NOT_NULL(t_params, "Failed to alloc %zuB for t_params", in bler_test()
3763 t_params[0].dev_id = ad->dev_id; in bler_test()
3764 t_params[0].lcore_id = rte_lcore_id(); in bler_test()
3765 t_params[0].op_params = op_params; in bler_test()
3766 t_params[0].queue_id = ad->queue_ids[used_cores++]; in bler_test()
3767 t_params[0].iter_count = 0; in bler_test()
3773 t_params[used_cores].dev_id = ad->dev_id; in bler_test()
3774 t_params[used_cores].lcore_id = lcore_id; in bler_test()
3775 t_params[used_cores].op_params = op_params; in bler_test()
3776 t_params[used_cores].queue_id = ad->queue_ids[used_cores]; in bler_test()
3777 t_params[used_cores].iter_count = 0; in bler_test()
3780 &t_params[used_cores++], lcore_id); in bler_test()
3784 ret = bler_function(&t_params[0]); in bler_test()
3788 ret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id); in bler_test()
3790 print_dec_bler(t_params, num_lcores); in bler_test()
3794 rte_free(t_params); in bler_test()
3799 rte_free(t_params); in bler_test()
3813 struct thread_params *t_params, *tp; in throughput_test() local
3839 t_params = rte_zmalloc(NULL, num_lcores * sizeof(struct thread_params), in throughput_test()
3841 TEST_ASSERT_NOT_NULL(t_params, "Failed to alloc %zuB for t_params", in throughput_test()
3860 t_params); in throughput_test()
3862 rte_free(t_params); in throughput_test()
3881 t_params[0].dev_id = ad->dev_id; in throughput_test()
3882 t_params[0].lcore_id = rte_lcore_id(); in throughput_test()
3883 t_params[0].op_params = op_params; in throughput_test()
3884 t_params[0].queue_id = ad->queue_ids[used_cores++]; in throughput_test()
3885 t_params[0].iter_count = 0; in throughput_test()
3891 t_params[used_cores].dev_id = ad->dev_id; in throughput_test()
3892 t_params[used_cores].lcore_id = lcore_id; in throughput_test()
3893 t_params[used_cores].op_params = op_params; in throughput_test()
3894 t_params[used_cores].queue_id = ad->queue_ids[used_cores]; in throughput_test()
3895 t_params[used_cores].iter_count = 0; in throughput_test()
3898 &t_params[used_cores++], lcore_id); in throughput_test()
3902 ret = throughput_function(&t_params[0]); in throughput_test()
3906 ret |= rte_eal_wait_lcore(t_params[used_cores].lcore_id); in throughput_test()
3910 rte_free(t_params); in throughput_test()
3918 print_dec_throughput(t_params, num_lcores); in throughput_test()
3920 print_enc_throughput(t_params, num_lcores); in throughput_test()
3921 rte_free(t_params); in throughput_test()
3930 tp = &t_params[0]; in throughput_test()
3943 tp = &t_params[used_cores]; in throughput_test()
3960 print_dec_throughput(t_params, num_lcores); in throughput_test()
3963 print_enc_throughput(t_params, num_lcores); in throughput_test()
3966 rte_free(t_params); in throughput_test()