| /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() 88 divisor_u64 = rte_rand(); in test_reciprocal_division_perf() 92 dividend_u64 = rte_rand(); in test_reciprocal_division_perf() 129 divisor_u64 = rte_rand() >> 32; in test_reciprocal_division_perf() 133 dividend_u64 = rte_rand(); in test_reciprocal_division_perf() 173 dividend_u64 = rte_rand(); in test_reciprocal_division_perf()
|
| H A D | test_efd_perf.c | 102 swap_idx = rte_rand() % i; in shuffle_input_keys() 143 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 145 data[i] = rte_rand() & VALUE_BITMASK; in setup_keys_and_data() 162 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data()
|
| H A D | test_lpm_perf.c | 393 ip_batch[i] = rte_rand(); in test_lpm_reader() 421 ip_batch[i] = rte_rand(); in test_lpm_rcu_qsbr_reader() 674 ip_batch[j] = rte_rand(); in test_lpm_perf() 700 ip_batch[j] = rte_rand(); in test_lpm_perf() 727 ip_batch[j] = rte_rand(); in test_lpm_perf()
|
| 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_memcpy_perf.c | 94 large_buf_read[i] = rte_rand(); in init_buffers() 96 small_buf_read[i] = rte_rand(); in init_buffers() 128 return ((rte_rand() % (LARGE_BUFFER_SIZE - SMALL_BUFFER_SIZE)) & in get_rand_offset()
|
| H A D | test_timer_secondary.c | 193 timeout_ms = ((rte_rand() & 0xF) + 1) * 10; in test_timer_secondary() 206 if (rte_rand() & 1) in test_timer_secondary()
|
| H A D | test_hash_perf.c | 136 swap_idx = rte_rand() % i; in shuffle_input_keys() 673 key = (uint32_t)rte_rand(); in fbk_hash_perf_test() 674 key = ((uint64_t)key << 32) | (uint64_t)rte_rand(); in fbk_hash_perf_test() 675 val = (uint16_t)rte_rand(); in fbk_hash_perf_test() 691 indexes[j] = rte_rand() % added; in fbk_hash_perf_test()
|
| H A D | test_member_perf.c | 102 swap_idx = rte_rand() % i; in shuffle_input_keys() 150 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 152 data[HT][i] = data[CACHE][i] = (rte_rand() & 0x7FFE) + 1; in setup_keys_and_data() 153 data[VBF][i] = rte_rand() % VBF_SET_CNT + 1; in setup_keys_and_data() 171 keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data()
|
| H A D | test_thash.c | 259 data[0][j] = rte_rand(); in test_toeplitz_hash_rand_data() 260 data[1][j] = rte_rand(); in test_toeplitz_hash_rand_data() 367 arr[i] = rte_rand(); in test_big_tuple_gfni() 665 uint32_t desired_value = rte_rand() & HASH_MSK(reta_sz); in test_predictable_rss_multirange() 694 ptr[j] = rte_rand(); in test_predictable_rss_multirange() 742 unsigned int i, desired_value = rte_rand() & HASH_MSK(reta_sz); in test_adjust_tuple()
|
| H A D | test_member.c | 549 generated_keys[i][j] = rte_rand() & 0xFF; in setup_keys_and_data() 567 rte_rand() & 0xFF; in setup_keys_and_data() 580 uint16_t set = (rte_rand() & 0xf) + 1; in add_generated_keys() 594 uint16_t set = (rte_rand() & 0xf) + 1; in add_generated_keys_cache()
|
| H A D | test_rand_perf.c | 56 sum += rte_rand(); in test_rand_perf_type()
|
| H A D | test_memcpy.c | 57 src[i] = (uint8_t) rte_rand(); in test_single_memcpy()
|
| H A D | test_timer.c | 149 r = rte_rand(); in timer_stress_cb() 183 r = rte_rand(); in timer_stress_main_loop()
|
| H A D | test_thash_perf.c | 98 tuples[i][j] = rte_rand(); in run_thash_test()
|
| H A D | test_timer_perf.c | 85 rte_timer_reset(&tms[i], rte_rand() % ticks, SINGLE, lcore_id, in test_timer_perf()
|
| /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()
|
| /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()
|
| /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 …]
|
| /dpdk/drivers/event/cnxk/ |
| H A D | cnxk_eventdev_selftest.c | 330 rte_rand() % 256 /* sub_event_type */, in generate_random_events() 331 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in generate_random_events() 332 rte_rand() % queue_count /* queue */, 0 /* port */, in generate_random_events() 779 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_single_link() 780 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_single_link() 862 rte_rand() % 256 /* sub_event_type */, in test_queue_to_port_multi_link() 863 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), in test_queue_to_port_multi_link() 1224 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_flow_based_pipeline_max_stages_rand_sched_type() 1300 rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); in worker_queue_based_pipeline_max_stages_rand_sched_type() 1344 ev.sub_event_type = rte_rand() % 256; in worker_mixed_pipeline_max_stages_rand_sched_type() [all …]
|
| /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 …]
|
| /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()
|
| /dpdk/lib/eal/include/ |
| H A D | rte_random.h | 50 rte_rand(void);
|
| /dpdk/lib/net/ |
| H A D | rte_ether.c | 13 uint64_t rand = rte_rand(); in rte_eth_random_addr()
|
| /dpdk/lib/sched/ |
| H A D | rte_red.c | 116 rte_red_rand_seed = rte_rand(); in rte_red_config_init()
|