DPDK  19.08.0-rc0
Data Fields
rte_mempool Struct Reference

#include <rte_mempool.h>

Data Fields

char name [RTE_MEMZONE_NAMESIZE]
 
void * pool_config
 
const struct rte_memzonemz
 
unsigned int flags
 
int socket_id
 
uint32_t size
 
uint32_t cache_size
 
uint32_t elt_size
 
uint32_t header_size
 
uint32_t trailer_size
 
unsigned private_data_size
 
int32_t ops_index
 
struct rte_mempool_cachelocal_cache
 
uint32_t populated_size
 
struct rte_mempool_objhdr_list elt_list
 
uint32_t nb_mem_chunks
 
struct rte_mempool_memhdr_list mem_list
 
void * pool_data
 
uint64_t pool_id
 

Detailed Description

The RTE mempool structure.

Examples
examples/bbdev_app/main.c, examples/bond/main.c, examples/distributor/main.c, examples/ethtool/ethtool-app/main.c, examples/eventdev_pipeline/main.c, examples/exception_path/main.c, examples/fips_validation/fips_dev_self_test.c, examples/fips_validation/main.c, examples/flow_classify/flow_classify.c, examples/flow_filtering/main.c, examples/ip_fragmentation/main.c, examples/ip_pipeline/mempool.c, examples/ip_reassembly/main.c, examples/ipsec-secgw/ipsec-secgw.c, examples/ipv4_multicast/main.c, examples/kni/main.c, examples/l2fwd-cat/l2fwd-cat.c, examples/l2fwd-crypto/main.c, examples/l2fwd-jobstats/main.c, examples/l2fwd-keepalive/main.c, examples/l2fwd/main.c, examples/l3fwd-acl/main.c, examples/l3fwd-power/main.c, examples/l3fwd-vf/main.c, examples/l3fwd/main.c, examples/link_status_interrupt/main.c, examples/load_balancer/init.c, examples/multi_process/client_server_mp/mp_client/client.c, examples/multi_process/client_server_mp/mp_server/init.c, examples/multi_process/simple_mp/main.c, examples/multi_process/symmetric_mp/main.c, examples/netmap_compat/bridge/bridge.c, examples/netmap_compat/lib/compat_netmap.c, examples/packet_ordering/main.c, examples/performance-thread/l3fwd-thread/main.c, examples/ptpclient/ptpclient.c, examples/qos_meter/main.c, examples/qos_sched/init.c, examples/quota_watermark/qw/main.c, examples/rxtx_callbacks/main.c, examples/server_node_efd/node/node.c, examples/server_node_efd/server/init.c, examples/skeleton/basicfwd.c, examples/tep_termination/main.c, examples/tep_termination/vxlan_setup.c, examples/vhost/main.c, examples/vhost/virtio_net.c, examples/vhost_crypto/main.c, examples/vm_power_manager/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 213 of file rte_mempool.h.

Field Documentation

◆ name

Name of mempool.

Examples
examples/ip_pipeline/mempool.c.

Definition at line 219 of file rte_mempool.h.

◆ pool_data

void* pool_data

Ring or pool to store objects.

Definition at line 222 of file rte_mempool.h.

◆ pool_id

uint64_t pool_id

External mempool identifier.

Definition at line 223 of file rte_mempool.h.

◆ pool_config

void* pool_config

optional args for ops alloc.

Definition at line 225 of file rte_mempool.h.

◆ mz

const struct rte_memzone* mz

Memzone where pool is alloc'd.

Definition at line 226 of file rte_mempool.h.

◆ flags

unsigned int flags

Flags of the mempool.

Examples
examples/multi_process/simple_mp/main.c.

Definition at line 227 of file rte_mempool.h.

◆ socket_id

int socket_id

◆ size

uint32_t size

Max size of the mempool.

Examples
examples/ip_pipeline/parser.c.

Definition at line 229 of file rte_mempool.h.

◆ cache_size

uint32_t cache_size

Size of per-lcore default local cache.

Definition at line 230 of file rte_mempool.h.

◆ elt_size

uint32_t elt_size

Size of an element.

Definition at line 233 of file rte_mempool.h.

◆ header_size

uint32_t header_size

Size of header (before elt).

Definition at line 234 of file rte_mempool.h.

◆ trailer_size

uint32_t trailer_size

Size of trailer (after elt).

Definition at line 235 of file rte_mempool.h.

◆ private_data_size

unsigned private_data_size

Size of private data.

Definition at line 237 of file rte_mempool.h.

◆ ops_index

int32_t ops_index

Index into rte_mempool_ops_table array of mempool ops structs, which contain callback function pointers. We're using an index here rather than pointers to the callbacks to facilitate any secondary processes that may want to use this mempool.

Definition at line 245 of file rte_mempool.h.

◆ local_cache

struct rte_mempool_cache* local_cache

Per-lcore local cache

Definition at line 247 of file rte_mempool.h.

◆ populated_size

uint32_t populated_size

Number of populated objects.

Definition at line 249 of file rte_mempool.h.

◆ elt_list

struct rte_mempool_objhdr_list elt_list

List of objects in pool

Definition at line 250 of file rte_mempool.h.

◆ nb_mem_chunks

uint32_t nb_mem_chunks

Number of memory chunks

Definition at line 251 of file rte_mempool.h.

◆ mem_list

struct rte_mempool_memhdr_list mem_list

List of memory chunks

Definition at line 252 of file rte_mempool.h.


The documentation for this struct was generated from the following file: