| /f-stack/dpdk/app/test/ |
| H A D | test_reciprocal_division.c | 40 divisor_u32 = rte_rand(); in test_reciprocal() 44 dividend_u32 = rte_rand(); in test_reciprocal() 62 divisor_u64 = rte_rand(); in test_reciprocal() 66 dividend_u64 = rte_rand(); in test_reciprocal() 84 divisor_u64 = rte_rand() >> 32; in test_reciprocal() 88 dividend_u64 = rte_rand(); in test_reciprocal() 111 dividend_u64 = rte_rand(); in test_reciprocal() 147 dividend_u64 = rte_rand(); in test_reciprocal()
|
| H A D | test_reciprocal_division_perf.c | 46 divisor_u32 = rte_rand(); in test_reciprocal_division_perf() 50 dividend_u32 = rte_rand(); in test_reciprocal_division_perf() 86 divisor_u64 = rte_rand(); in test_reciprocal_division_perf() 90 dividend_u64 = rte_rand(); in test_reciprocal_division_perf() 126 divisor_u64 = rte_rand() >> 32; in test_reciprocal_division_perf() 130 dividend_u64 = rte_rand(); in test_reciprocal_division_perf() 168 dividend_u64 = rte_rand(); in test_reciprocal_division_perf()
|
| H A D | test_efd_perf.c | 92 swap_idx = rte_rand() % i; in shuffle_input_keys() 133 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 135 data[i] = rte_rand() & VALUE_BITMASK; in setup_keys_and_data() 152 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data()
|
| H A D | test_lpm_perf.c | 383 ip_batch[i] = rte_rand(); in test_lpm_reader() 411 ip_batch[i] = rte_rand(); in test_lpm_rcu_qsbr_reader() 664 ip_batch[j] = rte_rand(); in test_lpm_perf() 690 ip_batch[j] = rte_rand(); in test_lpm_perf() 717 ip_batch[j] = rte_rand(); in test_lpm_perf()
|
| H A D | test_memcpy_perf.c | 93 large_buf_read[i] = rte_rand(); in init_buffers() 95 small_buf_read[i] = rte_rand(); in init_buffers() 127 return ((rte_rand() % (LARGE_BUFFER_SIZE - SMALL_BUFFER_SIZE)) & in get_rand_offset()
|
| H A D | test_atomic.c | 421 nt64.u64 = rte_rand(); in test_atomic_exchange() 428 nt32.u32 = (uint32_t)rte_rand(); in test_atomic_exchange() 435 nt16.u16 = (uint16_t)rte_rand(); in test_atomic_exchange() 614 t.u64 = rte_rand(); in test_atomic()
|
| H A D | test_timer_secondary.c | 184 timeout_ms = ((rte_rand() & 0xF) + 1) * 10; in test_timer_secondary() 197 if (rte_rand() & 1) in test_timer_secondary()
|
| H A D | test_hash_perf.c | 141 swap_idx = rte_rand() % i; in shuffle_input_keys() 678 key = (uint32_t)rte_rand(); in fbk_hash_perf_test() 679 key = ((uint64_t)key << 32) | (uint64_t)rte_rand(); in fbk_hash_perf_test() 680 val = (uint16_t)rte_rand(); in fbk_hash_perf_test() 696 indexes[j] = rte_rand() % added; in fbk_hash_perf_test()
|
| H A D | test_member_perf.c | 91 swap_idx = rte_rand() % i; in shuffle_input_keys() 139 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 141 data[HT][i] = data[CACHE][i] = (rte_rand() & 0x7FFE) + 1; in setup_keys_and_data() 142 data[VBF][i] = rte_rand() % VBF_SET_CNT + 1; in setup_keys_and_data() 160 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data()
|
| H A D | test_rand_perf.c | 56 sum += rte_rand(); in test_rand_perf_type()
|
| H A D | test_member.c | 538 generated_keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 556 rte_rand() & 0xFF; in setup_keys_and_data() 569 uint16_t set = (rte_rand() & 0xf) + 1; in add_generated_keys() 583 uint16_t set = (rte_rand() & 0xf) + 1; in add_generated_keys_cache()
|
| H A D | test_memcpy.c | 57 src[i] = (uint8_t) rte_rand(); in test_single_memcpy()
|
| H A D | test_timer.c | 150 r = rte_rand(); in timer_stress_cb() 184 r = rte_rand(); in timer_stress_main_loop()
|
| H A D | test_timer_perf.c | 85 rte_timer_reset(&tms[i], rte_rand() % ticks, SINGLE, lcore_id, in test_timer_perf()
|
| /f-stack/dpdk/app/test-sad/ |
| H A D | main.c | 231 return (rte_rand() % (u - l) + l); in get_rnd_rng() 244 rnd = rte_rand() % 100; in get_random_rules() 250 tbl[i].tuple.v6.dip[j] = rte_rand(); in get_random_rules() 251 tbl[i].tuple.v6.sip[j] = rte_rand(); in get_random_rules() 254 tbl[i].tuple.v4.dip = rte_rand(); in get_random_rules() 255 tbl[i].tuple.v4.sip = rte_rand(); in get_random_rules() 277 rte_rand(); in get_random_rules() 279 rte_rand(); in get_random_rules() 282 tbl[i].tuple.v4.dip = rte_rand(); in get_random_rules() 283 tbl[i].tuple.v4.sip = rte_rand(); in get_random_rules()
|
| /f-stack/dpdk/drivers/event/dpaa2/ |
| H A D | dpaa2_eventdev_selftest.c | 300 rte_rand() % info.max_event_queue_flows /*flow_id */, in generate_random_events() 302 rte_rand() % 256 /* sub_event_type */, in generate_random_events() 303 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in generate_random_events() 304 rte_rand() % queue_count /* queue */, in generate_random_events() 517 rte_rand() % 10000000/* 10ms */, &dequeue_tmo_ticks); in launch_workers_and_wait() 668 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_single_link() 669 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_single_link() 747 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_multi_link() 748 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_multi_link()
|
| /f-stack/dpdk/drivers/event/octeontx2/ |
| H A D | otx2_evdev_selftest.c | 327 rte_rand() % 256 /* sub_event_type */, in generate_random_events() 328 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in generate_random_events() 329 rte_rand() % queue_count /* queue */, in generate_random_events() 613 rte_rand() % 10000000/* 10ms */, in launch_workers_and_wait() 765 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_single_link() 841 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_multi_link() 1205 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_flow_based_pipeline_max_stages_rand_sched_type() 1235 rte_rand() % in launch_multi_port_max_stages_random_sched_type() 1282 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_queue_based_pipeline_max_stages_rand_sched_type() 1325 ev.sub_event_type = rte_rand() % 256; in worker_mixed_pipeline_max_stages_rand_sched_type() [all …]
|
| /f-stack/dpdk/drivers/event/octeontx/ |
| H A D | ssovf_evdev_selftest.c | 347 rte_rand() % 256 /* sub_event_type */, in generate_random_events() 348 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in generate_random_events() 349 rte_rand() % queue_count /* queue */, in generate_random_events() 777 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_single_link() 778 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_single_link() 856 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_multi_link() 857 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_multi_link() 1218 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_flow_based_pipeline_max_stages_rand_sched_type() 1293 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_queue_based_pipeline_max_stages_rand_sched_type() 1334 ev.sub_event_type = rte_rand() % 256; in worker_mixed_pipeline_max_stages_rand_sched_type() [all …]
|
| /f-stack/dpdk/app/test-fib/ |
| H A D | main.c | 136 return (rte_rand() % (u - l) + l); in get_rnd_rng() 285 j = rte_rand() % n; in shuffle_rt_4() 307 j = rte_rand() % n; in shuffle_rt_6() 330 rt[k++].nh = rte_rand() & get_max_nh(nh_sz); in gen_random_rt_4() 343 rt[k].nh = rte_rand() & get_max_nh(nh_sz); in gen_random_rt_4() 354 addr[i] = rte_rand(); in complete_v6_addr() 368 rt[k++].nh = rte_rand() & get_max_nh(nh_sz); in gen_random_rt_6() 385 rt[k].nh = rte_rand() & get_max_nh(nh_sz); in gen_random_rt_6() 397 addr[i] = rte_rand(); in set_rnd_ipv6() 424 tbl4[i] = rte_rand(); in gen_rnd_lookup_tbl() [all …]
|
| /f-stack/dpdk/app/test-pmd/ |
| H A D | noisy_vnf.c | 49 uint64_t i = rte_rand(); in do_write() 50 uint64_t w = rte_rand(); in do_write() 59 uint64_t i = rte_rand(); in do_read()
|
| /f-stack/dpdk/lib/librte_eal/include/ |
| H A D | rte_random.h | 50 rte_rand(void);
|
| /f-stack/dpdk/drivers/common/iavf/ |
| H A D | iavf_impl.c | 28 snprintf(z_name, sizeof(z_name), "iavf_dma_%"PRIu64, rte_rand()); in iavf_allocate_dma_mem_d()
|
| /f-stack/dpdk/lib/librte_sched/ |
| H A D | rte_red.c | 116 rte_red_rand_seed = rte_rand(); in rte_red_config_init()
|
| /f-stack/dpdk/lib/librte_net/ |
| H A D | rte_ether.c | 16 uint64_t rand = rte_rand(); in rte_eth_random_addr()
|
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | rte_random.c | 131 rte_rand(void) in rte_rand() function
|