DPDK  17.02.1
Data Fields
rte_mem_config Struct Reference

#include <rte_eal_memconfig.h>

Data Fields

volatile uint32_t magic
uint32_t nchannel
uint32_t nrank
rte_rwlock_t mlock
rte_rwlock_t qlock
rte_rwlock_t mplock
uint32_t memzone_cnt
struct rte_memseg memseg [RTE_MAX_MEMSEG]
struct rte_memzone memzone [RTE_MAX_MEMZONE]
struct rte_tailq_head tailq_head [RTE_MAX_TAILQ]

Detailed Description

the structure for the memory configuration for the RTE. Used by the rte_config structure. It is separated out, as for multi-process support, the memory details should be shared across instances

Definition at line 52 of file rte_eal_memconfig.h.

Field Documentation

volatile uint32_t magic

Magic number - Sanity check.

Definition at line 53 of file rte_eal_memconfig.h.

uint32_t nchannel

Number of channels (0 if unknown).

Definition at line 56 of file rte_eal_memconfig.h.

uint32_t nrank

Number of ranks (0 if unknown).

Definition at line 57 of file rte_eal_memconfig.h.

rte_rwlock_t mlock

current lock nest order

  • qlock->mlock (ring/hash/lpm)
  • mplock->qlock->mlock (mempool) Notice: ALWAYS obtain qlock first if having to obtain both qlock and mlockonly used by memzone LIB for thread-safe.

Definition at line 66 of file rte_eal_memconfig.h.

rte_rwlock_t qlock

used for tailq operation for thread safe.

Definition at line 67 of file rte_eal_memconfig.h.

rte_rwlock_t mplock

only used by mempool LIB for thread-safe.

Definition at line 68 of file rte_eal_memconfig.h.

uint32_t memzone_cnt

Number of allocated memzones

Definition at line 70 of file rte_eal_memconfig.h.

struct rte_memseg memseg[RTE_MAX_MEMSEG]

Physmem descriptors.

Definition at line 73 of file rte_eal_memconfig.h.

struct rte_memzone memzone[RTE_MAX_MEMZONE]

Memzone descriptors.

Definition at line 74 of file rte_eal_memconfig.h.

struct rte_tailq_head tailq_head[RTE_MAX_TAILQ]

Tailqs for objects

Definition at line 76 of file rte_eal_memconfig.h.


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