Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 16 of 16) sorted by relevance

/dpdk/app/test/
H A Dtest_hash_readwrite.c91 uint32_t rand = rte_rand() % (i + 1 - offset); in test_hash_readwrite_worker() local
94 tbl_rw_test_param.keys + rand) != ret[rand]) in test_hash_readwrite_worker()
99 tbl_rw_test_param.keys + rand) != ret[rand]) in test_hash_readwrite_worker()
102 ret[rand] = rte_hash_add_key(tbl_rw_test_param.h, in test_hash_readwrite_worker()
103 tbl_rw_test_param.keys + rand); in test_hash_readwrite_worker()
104 if (ret[rand] < 0) in test_hash_readwrite_worker()
108 tbl_rw_test_param.keys + rand) != ret[rand]) in test_hash_readwrite_worker()
H A Dtest_hash_functions.c193 key[i] = rand() & 0xff; in verify_jhash_32bits()
230 key[i] = rand(); in verify_jhash_words()
H A Dtest_ring.c593 int rand; in test_ring_burst_bulk_tests1() local
622 rand = RTE_MAX(rte_rand() % RING_SIZE, 1UL); in test_ring_burst_bulk_tests1()
624 __func__, i, rand); in test_ring_burst_bulk_tests1()
625 ret = test_ring_enq_impl(r, cur_src, esize[i], rand, in test_ring_burst_bulk_tests1()
629 ret = test_ring_deq_impl(r, cur_dst, esize[i], rand, in test_ring_burst_bulk_tests1()
631 TEST_RING_VERIFY(ret == rand, r, goto fail); in test_ring_burst_bulk_tests1()
H A Dtest_compressdev.c2855 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_stateless_dynamic_big()
3304 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_LB_1op()
3375 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_LB_2ops_first()
3446 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_LB_2ops_second()
3518 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_LB_3ops()
3591 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_LB_4ops()
3659 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_SGL_1op()
3730 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3801 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3873 test_buffer[j] = (uint8_t)(rand() % ((uint8_t)-1)) | 1; in test_compressdev_deflate_im_buffers_SGL_3ops()
[all …]
H A Dtest_timer.c358 int r = rand() % NB_STRESS2_TIMERS; in timer_stress2_main_loop()
H A Dtest_cryptodev.c12214 j = rand() % MB_SESSION_NUMBER; in test_multi_session_random_usage()
/dpdk/lib/net/
H A Drte_ether.c13 uint64_t rand = rte_rand(); in rte_eth_random_addr() local
14 uint8_t *p = (uint8_t *)&rand; in rte_eth_random_addr()
/dpdk/drivers/net/bnxt/tf_core/
H A Dmeson.build15 'rand.c',
/dpdk/drivers/raw/ioat/
H A Dioat_rawdev_test.c57 src_data[j] = rand() & 0xFF; in do_multi_copies()
143 src_data[i] = rand() & 0xFF; in test_enqueue_copies()
199 src_data[i] = rand() & 0xFF; in test_enqueue_copies()
/dpdk/lib/timer/
H A Drte_timer.c324 uint32_t rand = rte_rand() & (UINT32_MAX - 1); in timer_get_skiplist_level() local
325 uint32_t level = rand == 0 ? MAX_SKIPLIST_DEPTH : (rte_bsf32(rand)-1) / 2; in timer_get_skiplist_level()
/dpdk/examples/fips_validation/
H A Dfips_validation_gcm.c95 int random = rand(); in parse_gcm_pt_ct_str()
/dpdk/examples/l2fwd-keepalive/
H A Dmain.c226 uint64_t tsc_lifetime = (rand()&0x07) * rte_get_tsc_hz(); in l2fwd_main_loop()
/dpdk/doc/guides/rawdevs/
H A Dioat.rst255 src_data[j] = rand() & 0xFF;
/dpdk/app/test-bbdev/
H A Dtest_bbdev_perf.c1401 U1 = (double)rand() / RAND_MAX; in randn()
1402 U2 = (double)rand() / RAND_MAX; in randn()
/dpdk/drivers/net/qede/
H A Dqede_ethdev.c1045 buff[i] = rand(); in qede_prandom_bytes()
/dpdk/doc/guides/testpmd_app_ug/
H A Dtestpmd_funcs.rst869 testpmd> set txsplit (off|on|rand)
879 * ``rand`` same as 'on', but number of segments per each packet is a random value between 1 and tot…