DPDK  22.11.0
Data Fields
rte_mempool_cache Struct Reference

#include <rte_mempool.h>

Data Fields

uint32_t size
 
uint32_t flushthresh
 
uint32_t len
 
void *objs [RTE_MEMPOOL_CACHE_MAX_SIZE *2] __rte_cache_aligned
 

Detailed Description

A structure that stores a per-core object cache.

Definition at line 87 of file rte_mempool.h.

Field Documentation

◆ size

uint32_t size

Size of the cache

Definition at line 88 of file rte_mempool.h.

◆ flushthresh

uint32_t flushthresh

Threshold before we flush excess elements

Definition at line 89 of file rte_mempool.h.

◆ len

uint32_t len

Current cache count

Definition at line 90 of file rte_mempool.h.

◆ __rte_cache_aligned

void* objs [RTE_MEMPOOL_CACHE_MAX_SIZE * 2] __rte_cache_aligned

Cache objects

Cache is allocated to this size to allow it to overflow in certain cases to avoid needless emptying of cache.

Definition at line 110 of file rte_mempool.h.


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