Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 220) sorted by relevance

123456789

/dpdk/lib/graph/
H A Dgraph_populate.c18 size_t sz; in graph_fp_mem_calc_size() local
21 sz = sizeof(struct rte_graph); in graph_fp_mem_calc_size()
26 sz = RTE_ALIGN(sz, val); in graph_fp_mem_calc_size()
27 graph->cir_start = sz; in graph_fp_mem_calc_size()
29 sz += val; in graph_fp_mem_calc_size()
32 sz = RTE_ALIGN(sz, RTE_CACHE_LINE_SIZE); in graph_fp_mem_calc_size()
33 graph->nodes_start = sz; in graph_fp_mem_calc_size()
36 sz = RTE_ALIGN(sz, RTE_CACHE_LINE_SIZE); in graph_fp_mem_calc_size()
42 graph->mem_sz = sz; in graph_fp_mem_calc_size()
43 return sz; in graph_fp_mem_calc_size()
[all …]
H A Dnode.c61 size_t sz; in __rte_node_register() local
80 sz = sizeof(struct node) + (reg->nb_edges * RTE_NODE_NAMESIZE); in __rte_node_register()
81 node = calloc(1, sz); in __rte_node_register()
119 ssize_t sz, rc; in clone_name() local
125 sz = rc; in clone_name()
126 rc = rte_strscpy(reg->name + sz, "-", RTE_MAX((int16_t)(SZ - sz), 0)); in clone_name()
129 sz += rc; in clone_name()
130 sz = rte_strscpy(reg->name + sz, name, RTE_MAX((int16_t)(SZ - sz), 0)); in clone_name()
131 if (sz < 0) in clone_name()
241 size_t sz; in edge_update() local
[all …]
H A Dgraph_stats.c37 size_t sz; member
105 size_t sz = sizeof(struct rte_graph_cluster_stats); in stats_mem_init() local
121 stats = realloc(NULL, sz); in stats_mem_init()
123 memset(stats, 0, sz); in stats_mem_init()
129 stats->sz = sz; in stats_mem_init()
171 cluster = RTE_PTR_ADD(stats, stats->sz), in stats_mem_populate()
182 stats->sz += stats->cluster_node_size; in stats_mem_populate()
209 size_t sz; in cluster_add() local
219 sz = sizeof(struct graph *) * cluster->size; in cluster_add()
220 cluster->graphs = realloc(cluster->graphs, sz); in cluster_add()
[all …]
/dpdk/app/test/
H A Dtest_pmd_ring_perf.c100 unsigned sz, i = 0; in test_bulk_enqueue_dequeue() local
103 for (sz = 0; sz < RTE_DIM(bulk_sizes); sz++) { in test_bulk_enqueue_dequeue()
107 bulk_sizes[sz], NULL); in test_bulk_enqueue_dequeue()
109 bulk_sizes[sz], NULL); in test_bulk_enqueue_dequeue()
116 rte_eth_tx_burst(ring_ethdev_port, 0, burst, bulk_sizes[sz]); in test_bulk_enqueue_dequeue()
117 rte_eth_rx_burst(ring_ethdev_port, 0, burst, bulk_sizes[sz]); in test_bulk_enqueue_dequeue()
123 (iterations * bulk_sizes[sz])); in test_bulk_enqueue_dequeue()
125 (iterations * bulk_sizes[sz])); in test_bulk_enqueue_dequeue()
127 printf("ring bulk enq/deq (size: %u) : %.1F\n", bulk_sizes[sz], in test_bulk_enqueue_dequeue()
129 printf("ethdev bulk enq/deq (size:%u): %.1F\n", bulk_sizes[sz], in test_bulk_enqueue_dequeue()
H A Dtest_trace_perf.c131 memset(data, 0, sz); in WORKER_DEFINE()
151 size_t sz; in test_trace_perf() local
161 sz = sizeof(struct test_data); in test_trace_perf()
162 sz += nb_workers * sizeof(struct lcore_data); in test_trace_perf()
164 data = rte_zmalloc(NULL, sz, RTE_CACHE_LINE_SIZE); in test_trace_perf()
170 run_test("void", worker_fn_GENERIC_VOID, data, sz); in test_trace_perf()
171 run_test("u64", worker_fn_GENERIC_U64, data, sz); in test_trace_perf()
172 run_test("int", worker_fn_GENERIC_INT, data, sz); in test_trace_perf()
173 run_test("float", worker_fn_GENERIC_FLOAT, data, sz); in test_trace_perf()
175 run_test("string", worker_fn_GENERIC_STR, data, sz); in test_trace_perf()
[all …]
H A Dtest_stack_perf.c129 unsigned int sz; member
144 size = args->sz; in bulk_push_pop()
178 args[0].sz = args[1].sz = bulk_sizes[i]; in run_on_core_pair()
216 args[lcore_id].sz = bulk_sizes[i]; in run_on_n_cores()
227 args[lcore_id].sz = bulk_sizes[i]; in run_on_n_cores()
277 unsigned int sz, i; in test_bulk_push_pop() local
279 for (sz = 0; sz < RTE_DIM(bulk_sizes); sz++) { in test_bulk_push_pop()
283 rte_stack_push(s, objs, bulk_sizes[sz]); in test_bulk_push_pop()
284 rte_stack_pop(s, objs, bulk_sizes[sz]); in test_bulk_push_pop()
290 (iterations * bulk_sizes[sz])); in test_bulk_push_pop()
[all …]
H A Dtest_ring.h48 size_t sz; in test_ring_inc_ptr() local
50 sz = sizeof(void *); in test_ring_inc_ptr()
53 sz = esize; in test_ring_inc_ptr()
61 size_t sz; in test_ring_mem_copy() local
63 sz = num * sizeof(void *); in test_ring_mem_copy()
65 sz = esize * num; in test_ring_mem_copy()
67 memcpy(dst, src, sz); in test_ring_mem_copy()
228 unsigned int sz; in test_ring_calloc() local
233 sz = sizeof(void *); in test_ring_calloc()
235 sz = esize; in test_ring_calloc()
[all …]
H A Dtest_rcu_qsbr_perf.c128 size_t sz; in test_rcu_qsbr_perf() local
148 sz = rte_rcu_qsbr_get_memsize(tmp_num_cores); in test_rcu_qsbr_perf()
149 t[0] = (struct rte_rcu_qsbr *)rte_zmalloc("rcu0", sz, in test_rcu_qsbr_perf()
193 size_t sz; in test_rcu_qsbr_rperf() local
208 sz = rte_rcu_qsbr_get_memsize(tmp_num_cores); in test_rcu_qsbr_rperf()
241 size_t sz; in test_rcu_qsbr_wperf() local
255 sz = rte_rcu_qsbr_get_memsize(RTE_MAX_LCORE); in test_rcu_qsbr_wperf()
386 size_t sz; in test_rcu_qsbr_sw_sv_1qs() local
406 sz = rte_rcu_qsbr_get_memsize(tmp_num_cores); in test_rcu_qsbr_sw_sv_1qs()
506 size_t sz; in test_rcu_qsbr_sw_sv_1qs_non_blocking() local
[all …]
/dpdk/drivers/mempool/cnxk/
H A Dcn10k_mempool_ops.c20 unsigned int sz; member
44 unsigned int maxpools, sz; in batch_op_data_table_create() local
94 op_data->mem[i].sz = 0; in batch_op_init()
118 mem->sz = roc_npa_aura_batch_alloc_extract( in batch_op_fini()
124 mem->sz, 1); in batch_op_fini()
178 count += mem->sz; in cn10k_mempool_get_count()
218 retry -= (mem->sz != BATCH_ALLOC_SZ); in cn10k_mempool_deq()
225 if (cur_sz > mem->sz) in cn10k_mempool_deq()
226 cur_sz = mem->sz; in cn10k_mempool_deq()
231 mem->sz -= cur_sz; in cn10k_mempool_deq()
[all …]
/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_cppcore.c433 int sz; in nfp_cpp_area_readl() local
446 int sz; in nfp_cpp_area_writel() local
450 return (sz == sizeof(value)) ? 0 : -1; in nfp_cpp_area_writel()
457 int sz; in nfp_cpp_area_readq() local
470 int sz; in nfp_cpp_area_writeq() local
475 return (sz == sizeof(value)) ? 0 : -1; in nfp_cpp_area_writeq()
482 int sz; in nfp_cpp_readl() local
495 int sz; in nfp_cpp_writel() local
500 return (sz == sizeof(value)) ? 0 : -1; in nfp_cpp_writel()
507 int sz; in nfp_cpp_readq() local
[all …]
/dpdk/lib/eal/freebsd/
H A Deal_timer.c31 size_t sz; in get_tsc_freq() local
35 sz = sizeof(tmp); in get_tsc_freq()
38 if (sysctlbyname("kern.timecounter.smp_tsc", &tmp, &sz, NULL, 0)) in get_tsc_freq()
45 if (sysctlbyname("kern.timecounter.invariant_tsc", &tmp, &sz, NULL, 0)) in get_tsc_freq()
50 sz = sizeof(tsc_hz); in get_tsc_freq()
51 if (sysctlbyname("machdep.tsc_freq", &tsc_hz, &sz, NULL, 0)) { in get_tsc_freq()
/dpdk/drivers/common/dpaax/
H A Dcompat.h300 static inline void copy_words(void *dest, const void *src, size_t sz) in copy_words() argument
304 size_t __sz = sz >> 2; in copy_words()
308 DPAA_BUG_ON(sz & 0x3); in copy_words()
313 static inline void copy_shorts(void *dest, const void *src, size_t sz) in copy_shorts() argument
317 size_t __sz = sz >> 1; in copy_shorts()
321 DPAA_BUG_ON(sz & 0x1); in copy_shorts()
326 static inline void copy_bytes(void *dest, const void *src, size_t sz) in copy_bytes() argument
331 while (sz--) in copy_bytes()
341 #define kmalloc(sz, t) rte_malloc(NULL, sz, 0) argument
342 #define kzalloc(sz, t) rte_zmalloc(NULL, sz, 0) argument
[all …]
/dpdk/lib/stack/
H A Drte_stack_std.c16 ssize_t sz = sizeof(struct rte_stack); in rte_stack_std_get_memsize() local
18 sz += RTE_CACHE_LINE_ROUNDUP(count * sizeof(void *)); in rte_stack_std_get_memsize()
23 sz += 2 * RTE_CACHE_LINE_SIZE; in rte_stack_std_get_memsize()
25 return sz; in rte_stack_std_get_memsize()
H A Drte_stack_lf.c21 ssize_t sz = sizeof(struct rte_stack); in rte_stack_lf_get_memsize() local
23 sz += RTE_CACHE_LINE_ROUNDUP(count * sizeof(struct rte_stack_lf_elem)); in rte_stack_lf_get_memsize()
28 sz += 2 * RTE_CACHE_LINE_SIZE; in rte_stack_lf_get_memsize()
30 return sz; in rte_stack_lf_get_memsize()
/dpdk/lib/bpf/
H A Dbpf_jit_x86.c101 size_t sz; member
142 st->sz += sz; in emit_bytes()
712 joff = ofs - st->sz; in emit_abs_jmp()
830 joff = ofs - st->sz; in emit_abs_jcc()
1098 uint32_t sz) in emit_ldmb_slow_path() argument
1131 uint32_t sz) in emit_ldmb_fin() argument
1288 st->sz = 0; in emit()
1497 size_t sz; in bpf_jit_x86() local
1516 sz = st.sz; in bpf_jit_x86()
1518 } while (rc == 0 && sz != st.sz); in bpf_jit_x86()
[all …]
H A Dbpf_load.c20 size_t sz, bsz, insz, xsz; in bpf_load() local
25 sz = insz + xsz + bsz; in bpf_load()
27 buf = mmap(NULL, sz, PROT_READ | PROT_WRITE, in bpf_load()
33 bpf->sz = sz; in bpf_load()
113 if (mprotect(bpf, bpf->sz, PROT_READ) != 0) in rte_bpf_load()
/dpdk/doc/guides/tools/
H A Dcryptoperf.rst94 * ``--pool-sz <n>``
102 * ``--burst-sz <n>``
113 * ``--buffer-sz <n>``
139 * ``--segment-sz <n>``
268 * ``--auth-iv-sz <n>``
292 * ``--aead-iv-sz <n>``
300 * ``--digest-sz <n>``
409 sha1-hmac --auth-op generate --auth-key-sz 64 --digest-sz 12
410 --total-ops 10000000 --burst-sz 32 --buffer-sz 64
417 --cipher-algo aes-cbc --cipher-key-sz 16 --cipher-iv-sz 16
[all …]
/dpdk/drivers/net/cnxk/
H A Dcn9k_tx_select.c29 #define T(name, sz, flags)[flags] = cn9k_nix_xmit_pkts_##name, in cn9k_eth_set_tx_function() argument
35 #define T(name, sz, flags)[flags] = cn9k_nix_xmit_pkts_mseg_##name, in cn9k_eth_set_tx_function() argument
41 #define T(name, sz, flags)[flags] = cn9k_nix_xmit_pkts_vec_##name, in cn9k_eth_set_tx_function() argument
47 #define T(name, sz, flags)[flags] = cn9k_nix_xmit_pkts_vec_mseg_##name, in cn9k_eth_set_tx_function() argument
H A Dcn10k_tx_select.c29 #define T(name, sz, flags)[flags] = cn10k_nix_xmit_pkts_##name, in cn10k_eth_set_tx_function() argument
36 #define T(name, sz, flags)[flags] = cn10k_nix_xmit_pkts_mseg_##name, in cn10k_eth_set_tx_function() argument
43 #define T(name, sz, flags)[flags] = cn10k_nix_xmit_pkts_vec_##name, in cn10k_eth_set_tx_function() argument
50 #define T(name, sz, flags)[flags] = cn10k_nix_xmit_pkts_vec_mseg_##name, in cn10k_eth_set_tx_function() argument
/dpdk/lib/ipsec/
H A Dsa.c100 size_t sz; in rsn_size() local
104 sz = RTE_ALIGN_CEIL(sz, RTE_CACHE_LINE_SIZE); in rsn_size()
105 return sz; in rsn_size()
126 uint32_t n, sz, wsz; in ipsec_sa_size() local
151 sz = rsn_size(n); in ipsec_sa_size()
156 return sz; in ipsec_sa_size()
552 int32_t rc, sz; in rte_ipsec_sa_init() local
568 if (sz < 0) in rte_ipsec_sa_init()
569 return sz; in rte_ipsec_sa_init()
593 sa->size = sz; in rte_ipsec_sa_init()
[all …]
/dpdk/lib/ip_frag/
H A Drte_ip_frag_common.c44 size_t sz; in rte_ip_frag_table_create() local
59 sz = sizeof (*tbl) + nb_entries * sizeof (tbl->pkt[0]); in rte_ip_frag_table_create()
60 if ((tbl = rte_zmalloc_socket(__func__, sz, RTE_CACHE_LINE_SIZE, in rte_ip_frag_table_create()
64 __func__, sz, socket_id); in rte_ip_frag_table_create()
69 __func__, sz, socket_id); in rte_ip_frag_table_create()
/dpdk/lib/rcu/
H A Drte_rcu_qsbr.c26 size_t sz; in rte_rcu_qsbr_get_memsize() local
37 sz = sizeof(struct rte_rcu_qsbr); in rte_rcu_qsbr_get_memsize()
40 sz += sizeof(struct rte_rcu_qsbr_cnt) * max_threads; in rte_rcu_qsbr_get_memsize()
43 sz += __RTE_QSBR_THRID_ARRAY_SIZE(max_threads); in rte_rcu_qsbr_get_memsize()
45 return sz; in rte_rcu_qsbr_get_memsize()
52 size_t sz; in rte_rcu_qsbr_init() local
62 sz = rte_rcu_qsbr_get_memsize(max_threads); in rte_rcu_qsbr_init()
63 if (sz == 1) in rte_rcu_qsbr_init()
67 memset(v, 0, sz); in rte_rcu_qsbr_init()
/dpdk/drivers/raw/dpaa2_qdma/
H A Drte_pmd_dpaa2_qdma.h180 #define rte_qdma_configure(id, cf, sz) rte_rawdev_configure(id, cf, sz) argument
185 #define rte_qdma_queue_setup(id, qid, cfg, sz) \ argument
186 rte_rawdev_queue_setup(id, qid, cfg, sz)
/dpdk/lib/mempool/
H A Drte_mempool.c218 struct rte_mempool_objsz *sz) in rte_mempool_calc_obj_size() argument
222 sz = (sz != NULL) ? sz : &lsz; in rte_mempool_calc_obj_size()
226 sz->header_size = RTE_ALIGN_CEIL(sz->header_size, in rte_mempool_calc_obj_size()
232 sz->trailer_size = 0; in rte_mempool_calc_obj_size()
240 sz->total_size = sz->header_size + sz->elt_size + in rte_mempool_calc_obj_size()
241 sz->trailer_size; in rte_mempool_calc_obj_size()
242 sz->trailer_size += ((RTE_MEMPOOL_ALIGN - in rte_mempool_calc_obj_size()
254 (sz->header_size + sz->elt_size + sz->trailer_size); in rte_mempool_calc_obj_size()
255 sz->trailer_size = new_size - sz->header_size - sz->elt_size; in rte_mempool_calc_obj_size()
259 sz->total_size = sz->header_size + sz->elt_size + sz->trailer_size; in rte_mempool_calc_obj_size()
[all …]
/dpdk/examples/ipsec-secgw/test/
H A Ddata_rxtx.sh50 for sz in 1234 23456 345678 4567890 56789102 ; do
51 x=`basename $0`.${sz}
52 dd if=/dev/urandom of=${x} bs=${sz} count=1

123456789