DPDK  2.2.0
Data Fields
rte_mempool Struct Reference

#include <rte_mempool.h>

Data Fields

char name [RTE_MEMPOOL_NAMESIZE]
struct rte_ringring
phys_addr_t phys_addr
int flags
uint32_t size
uint32_t cache_size
uint32_t cache_flushthresh
uint32_t elt_size
uint32_t header_size
uint32_t trailer_size
unsigned private_data_size
uint32_t pg_num __rte_cache_aligned
uint32_t pg_shift
uintptr_t pg_mask
uintptr_t elt_va_start
uintptr_t elt_va_end
phys_addr_t elt_pa [MEMPOOL_PG_NUM_DEFAULT]

Detailed Description

The RTE mempool structure.

Examples:
bond/main.c, distributor/main.c, dpdk_qat/main.c, ethtool/ethtool-app/main.c, exception_path/main.c, ip_fragmentation/main.c, ip_reassembly/main.c, ipv4_multicast/main.c, kni/main.c, l2fwd-crypto/main.c, l2fwd-ivshmem/host/host.c, l2fwd-jobstats/main.c, l2fwd-keepalive/main.c, l2fwd/main.c, l3fwd-acl/main.c, l3fwd-power/main.c, l3fwd-vf/main.c, l3fwd/main.c, link_status_interrupt/main.c, load_balancer/init.c, multi_process/client_server_mp/mp_client/client.c, multi_process/client_server_mp/mp_server/init.c, multi_process/l2fwd_fork/main.c, multi_process/simple_mp/main.c, multi_process/symmetric_mp/main.c, netmap_compat/bridge/bridge.c, netmap_compat/lib/compat_netmap.c, packet_ordering/main.c, performance-thread/l3fwd-thread/main.c, ptpclient/ptpclient.c, qos_meter/main.c, qos_sched/init.c, quota_watermark/qw/main.c, rxtx_callbacks/main.c, skeleton/basicfwd.c, tep_termination/main.c, tep_termination/vxlan_setup.c, vhost/main.c, vhost_xen/main.c, vmdq/main.c, and vmdq_dcb/main.c.

Definition at line 181 of file rte_mempool.h.

Field Documentation

Name of mempool.

Definition at line 182 of file rte_mempool.h.

struct rte_ring* ring

Ring to store objects.

Definition at line 183 of file rte_mempool.h.

phys_addr_t phys_addr

Phys. addr. of mempool struct.

Definition at line 184 of file rte_mempool.h.

int flags

Flags of the mempool.

Examples:
multi_process/simple_mp/main.c.

Definition at line 185 of file rte_mempool.h.

uint32_t size

Size of the mempool.

Definition at line 186 of file rte_mempool.h.

uint32_t cache_size

Size of per-lcore local cache.

Definition at line 187 of file rte_mempool.h.

uint32_t cache_flushthresh

Threshold before we flush excess elements.

Definition at line 189 of file rte_mempool.h.

uint32_t elt_size

Size of an element.

Examples:
vhost/main.c.

Definition at line 191 of file rte_mempool.h.

uint32_t header_size

Size of header (before elt).

Definition at line 192 of file rte_mempool.h.

uint32_t trailer_size

Size of trailer (after elt).

Definition at line 193 of file rte_mempool.h.

unsigned private_data_size

Size of private data.

Definition at line 195 of file rte_mempool.h.

uint32_t pg_num __rte_cache_aligned

Number of elements in the elt_pa array.

Definition at line 210 of file rte_mempool.h.

uint32_t pg_shift

LOG2 of the physical pages.

Definition at line 211 of file rte_mempool.h.

uintptr_t pg_mask

physical page mask value.

Definition at line 212 of file rte_mempool.h.

uintptr_t elt_va_start

Virtual address of the first mempool object.

Definition at line 214 of file rte_mempool.h.

uintptr_t elt_va_end

Virtual address of the <size + 1> mempool object.

Definition at line 216 of file rte_mempool.h.

Array of physical page addresses for the mempool objects buffer.

Definition at line 218 of file rte_mempool.h.


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