Home
last modified time | relevance | path

Searched refs:mempool (Results 1 – 25 of 184) sorted by relevance

12345678

/dpdk/lib/mempool/
H A Drte_mempool_trace.h29 struct rte_mempool *mempool),
40 rte_trace_point_emit_ptr(mempool);
49 struct rte_mempool *mempool),
56 rte_trace_point_emit_ptr(mempool);
63 rte_trace_point_emit_ptr(mempool);
71 rte_trace_point_emit_ptr(mempool);
84 rte_trace_point_emit_ptr(mempool);
96 rte_trace_point_emit_ptr(mempool);
103 rte_trace_point_emit_ptr(mempool);
127 rte_trace_point_emit_ptr(mempool);
[all …]
H A Dmempool_trace_points.c10 lib.mempool.ops.deq.bulk)
16 lib.mempool.ops.enq.bulk)
19 lib.mempool.generic.put)
22 lib.mempool.put.bulk)
25 lib.mempool.generic.get)
28 lib.mempool.get.bulk)
31 lib.mempool.get.blocks)
34 lib.mempool.create)
40 lib.mempool.free)
73 lib.mempool.ops.alloc)
[all …]
H A Drte_mempool_trace_fp.h22 RTE_TRACE_POINT_ARGS(void *mempool, void **obj_table,
24 rte_trace_point_emit_ptr(mempool);
33 rte_trace_point_emit_ptr(mempool);
42 rte_trace_point_emit_ptr(mempool);
51 rte_trace_point_emit_ptr(mempool);
61 rte_trace_point_emit_ptr(mempool);
71 rte_trace_point_emit_ptr(mempool);
81 rte_trace_point_emit_ptr(mempool);
91 rte_trace_point_emit_ptr(mempool);
100 rte_trace_point_emit_ptr(mempool);
[all …]
/dpdk/examples/ip_pipeline/
H A Dmempool.c25 struct mempool *
28 struct mempool *mempool; in mempool_find() local
34 if (strcmp(mempool->name, name) == 0) in mempool_find()
35 return mempool; in mempool_find()
40 struct mempool *
43 struct mempool *mempool; in mempool_create() local
67 mempool = calloc(1, sizeof(struct mempool)); in mempool_create()
68 if (mempool == NULL) { in mempool_create()
74 strlcpy(mempool->name, name, sizeof(mempool->name)); in mempool_create()
75 mempool->m = m; in mempool_create()
[all …]
H A Dmempool.h15 struct mempool { struct
16 TAILQ_ENTRY(mempool) node;
22 TAILQ_HEAD(mempool_list, mempool); argument
27 struct mempool *
37 struct mempool *
H A Dkni.c107 struct mempool *mempool; in kni_create() local
120 mempool = mempool_find(params->mempool_name); in kni_create()
122 if ((mempool == NULL) || in kni_create()
136 kni_conf.mbuf_size = mempool->buffer_size; in kni_create()
150 k = rte_kni_alloc(mempool->m, &kni_conf, &kni_ops); in kni_create()
H A Dlink.c106 struct mempool *mempool; in link_create() local
135 mempool = mempool_find(params->rx.mempool_name); in link_create()
136 if (mempool == NULL) in link_create()
193 mempool->m); in link_create()
/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_mempool.c27 struct softnic_mempool *mempool; in softnic_mempool_free() local
30 if (mempool == NULL) in softnic_mempool_free()
34 rte_mempool_free(mempool->m); in softnic_mempool_free()
35 free(mempool); in softnic_mempool_free()
43 struct softnic_mempool *mempool; in softnic_mempool_find() local
50 return mempool; in softnic_mempool_find()
61 struct softnic_mempool *mempool; in softnic_mempool_create() local
89 if (mempool == NULL) { in softnic_mempool_create()
95 strlcpy(mempool->name, name, sizeof(mempool->name)); in softnic_mempool_create()
96 mempool->m = m; in softnic_mempool_create()
[all …]
/dpdk/lib/compressdev/
H A Drte_comp.c58 struct rte_mempool *tmp_mp = op->mempool; in rte_comp_op_reset()
64 op->mempool = tmp_mp; in rte_comp_op_reset()
100 rte_comp_op_init(struct rte_mempool *mempool, in rte_comp_op_init() argument
107 memset(_op_data, 0, mempool->elt_size); in rte_comp_op_init()
111 op->mempool = mempool; in rte_comp_op_init()
170 rte_comp_op_alloc(struct rte_mempool *mempool) in rte_comp_op_alloc() argument
185 rte_comp_op_bulk_alloc(struct rte_mempool *mempool, in rte_comp_op_bulk_alloc() argument
212 if (op != NULL && op->mempool != NULL) in rte_comp_op_free()
213 rte_mempool_put(op->mempool, op); in rte_comp_op_free()
222 if (ops[i] != NULL && ops[i]->mempool != NULL) in rte_comp_op_bulk_free()
[all …]
H A Drte_comp.h305 struct rte_mempool *mempool; member
446 rte_comp_op_alloc(struct rte_mempool *mempool);
463 rte_comp_op_bulk_alloc(struct rte_mempool *mempool,
/dpdk/lib/cryptodev/
H A Drte_crypto.h120 struct rte_mempool *mempool; member
192 __rte_crypto_op_get_priv_data_size(struct rte_mempool *mempool) in __rte_crypto_op_get_priv_data_size() argument
237 __rte_crypto_op_raw_bulk_alloc(struct rte_mempool *mempool, in __rte_crypto_op_raw_bulk_alloc() argument
248 if (rte_mempool_get_bulk(mempool, (void **)ops, nb_ops) == 0) in __rte_crypto_op_raw_bulk_alloc()
270 retval = __rte_crypto_op_raw_bulk_alloc(mempool, type, &op, 1); in rte_crypto_op_alloc()
295 rte_crypto_op_bulk_alloc(struct rte_mempool *mempool, in rte_crypto_op_bulk_alloc() argument
329 if (likely(op->mempool != NULL)) { in __rte_crypto_op_get_priv_data()
330 priv_size = __rte_crypto_op_get_priv_data_size(op->mempool); in __rte_crypto_op_get_priv_data()
355 if (op != NULL && op->mempool != NULL) in rte_crypto_op_free()
356 rte_mempool_put(op->mempool, op); in rte_crypto_op_free()
[all …]
H A Drte_cryptodev_trace.h66 uint16_t user_data_size, void *mempool),
72 rte_trace_point_emit_ptr(mempool);
77 RTE_TRACE_POINT_ARGS(void *mempool,
79 rte_trace_point_emit_ptr(mempool);
89 uint16_t user_data_size, uint32_t cache_size, void *mempool),
94 rte_trace_point_emit_ptr(mempool);
99 RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *xforms, void *mempool,
103 rte_trace_point_emit_ptr(mempool);
124 void *mempool),
131 rte_trace_point_emit_ptr(mempool);
/dpdk/examples/pipeline/
H A Dobj.c65 struct mempool *
68 struct mempool *mempool; in mempool_create() local
92 mempool = calloc(1, sizeof(struct mempool)); in mempool_create()
99 strlcpy(mempool->name, name, sizeof(mempool->name)); in mempool_create()
100 mempool->m = m; in mempool_create()
106 return mempool; in mempool_create()
109 struct mempool *
112 struct mempool *mempool; in mempool_find() local
119 return mempool; in mempool_find()
188 struct mempool *mempool; in link_create() local
[all …]
H A Dobj.h37 struct mempool { struct
38 TAILQ_ENTRY(mempool) node;
44 struct mempool * argument
49 struct mempool *
/dpdk/doc/guides/mempool/
H A Dcnxk.rst7 The cnxk NPA PMD (**librte_mempool_cnxk**) provides mempool driver support for
8 the integrated mempool device found in **Marvell OCTEON CN9K/CN10K** SoC family.
20 - HW mempool manager
48 HW during mempool driver initialization. HW can support up to 1M mempools,
49 Since each mempool costs set of HW resources, the ``max_pools`` ``devargs``
70 .. table:: cnxk mempool debug options
75 | 1 | NPA | --log-level='pmd\.mempool.cnxk,8' |
78 Standalone mempool device
81 The ``usertools/dpdk-devbind.py`` script shall enumerate all the mempool
83 mempool device prior to use ethdev and/or eventdev device, the respective
[all …]
H A Dstack.rst7 **rte_mempool_stack** is a pure software mempool driver based on the
10 the mempool type (ring, stack, etc.) will have a negligible impact on
11 performance. However a stack-based mempool is often better suited to pipelined
13 than a ring-based mempool, since its LIFO behavior results in better temporal
14 locality and a minimal memory footprint even if the mempool is
15 over-provisioned. Users are encouraged to benchmark with multiple mempool types
18 The following modes of operation are available for the stack mempool driver and
32 standard stack is non-preemptive: if a mempool user is preempted while holding
33 the stack lock, that thread will block all other mempool accesses until it
H A Docteontx.rst7 The OCTEON TX FPAVF PMD (**librte_mempool_octeontx**) is a mempool
8 driver for offload mempool device found in **Cavium OCTEON TX** SoC
21 - HW mempool manager
44 Set default mempool ops to octeontx_fpavf.
55 The OCTEON TX fpavf mempool initialization similar to other mempool
H A Dring.rst7 **rte_mempool_ring** is a pure software mempool driver based on the
8 ``rte_ring`` DPDK library. This is a default mempool driver.
9 The following modes of operation are available for the ring mempool driver
10 and can be selected via mempool ops API:
H A Dindex.rst7 The following are a list of mempool PMDs, which can be used from an
8 application through the mempool API.
/dpdk/doc/guides/tools/
H A Dproc_info.rst22 --show-ring[=name] | --show-mempool[=name] | --iter-mempool=name ]
63 **--show-mempool[=name]**
64 The show-mempool parameter display current allocation of all mempool
66 mempool. For invalid or no mempool name, whole list is dump.
68 **--iter-mempool=name**
69 The iter-mempool parameter iterates and displays mempool elements specified
70 by name. For invalid or no mempool name no elements are displayed.
/dpdk/lib/bbdev/
H A Drte_bbdev_op.h767 struct rte_mempool *mempool; member
783 struct rte_mempool *mempool; member
863 rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, in rte_bbdev_enc_op_alloc_bulk() argument
871 rte_mempool_get_priv(mempool); in rte_bbdev_enc_op_alloc_bulk()
877 ret = rte_mempool_get_bulk(mempool, (void **)ops, num_ops); in rte_bbdev_enc_op_alloc_bulk()
899 rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, in rte_bbdev_dec_op_alloc_bulk() argument
907 rte_mempool_get_priv(mempool); in rte_bbdev_dec_op_alloc_bulk()
913 ret = rte_mempool_get_bulk(mempool, (void **)ops, num_ops); in rte_bbdev_dec_op_alloc_bulk()
934 rte_mempool_put_bulk(ops[0]->mempool, (void **)ops, num_ops); in rte_bbdev_dec_op_free_bulk()
951 rte_mempool_put_bulk(ops[0]->mempool, (void **)ops, num_ops); in rte_bbdev_enc_op_free_bulk()
/dpdk/doc/guides/prog_guide/
H A Dmempool_lib.rst10 In the DPDK, it is identified by name and uses a mempool handler to store free objects.
11 The default mempool handler is ring based.
98 .. figure:: img/mempool.*
100 A mempool in Memory with its Associated Ring
115 There are two aspects to a mempool handler.
117 * Adding the code for your new mempool operations (ops). This is achieved by
126 then using ``rte_mempool_set_ops_byname()`` to point the mempool to the
127 relevant mempool handler callback (ops) structure.
131 will need to be modified to use a new mempool handler.
135 an alternative mempool handler.
[all …]
/dpdk/lib/port/
H A Drte_swx_port_fd.c31 struct rte_mempool *mempool; member
47 if (!conf || conf->fd < 0 || conf->mtu == 0 || !conf->mempool) in reader_create()
65 p->params.mempool = conf->mempool; in reader_create()
96 if (rte_pktmbuf_alloc_bulk(p->params.mempool, p->pkts, p->params.burst_size) != 0) in reader_pkt_rx()
159 struct rte_mempool *mempool; member
/dpdk/drivers/mempool/
H A Dmeson.build14 std_deps = ['mempool']
16 log_prefix = 'mempool'
/dpdk/drivers/
H A Dmeson.build12 'mempool', # depends on common and bus.
14 'net', # depends on common, bus, mempool
16 'crypto', # depends on common, bus and mempool (net in future).
17 'compress', # depends on common, bus, mempool.
19 'vdpa', # depends on common, bus and mempool.
20 'event', # depends on common, bus, mempool and net.
43 # we always need a mempool driver, and ring is default, so make it mandatory
44 always_enable += ['mempool/ring']

12345678