rte_mempool(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

rte_mempool β€” bestie, this is the mempool page from the DPDK Library Functions Manual, and it's literally the whole struct tour, ok? buckle up πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_mempool.h>

πŸ’œ Data Fields

  • char name [RTE_MEMPOOL_NAMESIZE]
  • void * pool_config
  • const struct rte_memzone * mz
  • 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_cache * local_cache
  • uint32_t populated_size
  • struct rte_mempool_objhdr_list elt_list
  • uint32_t nb_mem_chunks
  • struct rte_mempool_memhdr_list mem_list

πŸ’– Detailed Description πŸ’–

okay so this is the RTE mempool structure. that's the whole vibe. 🌸

Definition at line 230 of file rte_mempool.h.

πŸŽ€ Field Documentation πŸŽ€

char name[RTE_MEMPOOL_NAMESIZE]

The name of the mempool, periodt. it has a name and it's iconic πŸ’…

Definition at line 231 of file rte_mempool.h.

void* pool_data

The ring or pool that stores the objects. this is where the actual stuff lives 🫢

Definition at line 233 of file rte_mempool.h.

uint64_t pool_id

The external mempool identifier β€” like, its little ID card for the outside world πŸͺͺ

Definition at line 234 of file rte_mempool.h.

void* pool_config

Optional args for ops alloc. optional!! no pressure πŸ¦‹

Definition at line 236 of file rte_mempool.h.

const struct rte_memzone* mz

The memzone where the pool is alloc'd. it's got a whole zone to itself, main character energy πŸ‘‘

Definition at line 237 of file rte_mempool.h.

unsigned int flags

The flags of the mempool. flags!! we love a flag moment ✨

Definition at line 238 of file rte_mempool.h.

int socket_id

The socket id that was passed in at create time. remember where you came from bestie πŸ₯Ί

Definition at line 239 of file rte_mempool.h.

uint32_t size

The max size of the mempool. the ceiling, the limit, the "that's enough" line πŸ”₯

Definition at line 240 of file rte_mempool.h.

uint32_t cache_size

The size of the per-lcore default local cache. every lcore gets its own little stash πŸ’–

Definition at line 241 of file rte_mempool.h.

uint32_t elt_size

The size of an element. one single element's size, no cap πŸ“

Definition at line 244 of file rte_mempool.h.

uint32_t header_size

The size of the header β€” and it sits before the elt. before!! ⬅️

Definition at line 245 of file rte_mempool.h.

uint32_t trailer_size

The size of the trailer β€” and this one sits after the elt. after!! ➑️

Definition at line 246 of file rte_mempool.h.

unsigned private_data_size

The size of private data. it's private, mind your business πŸ™ˆ

Definition at line 248 of file rte_mempool.h.

int32_t ops_index

This is the index into the rte_mempool_ops_table array of mempool ops structs, which contain callback function pointers. and the reason we're using an index here rather than pointers to the callbacks: it facilitates any secondary processes that may want to use this mempool. yes, it's giving "designed for the multi-process girlies" πŸ’…

Definition at line 256 of file rte_mempool.h.

struct rte_mempool_cache* local_cache

The per-lcore local cache. yours, locally, on your lcore πŸ’œ

Definition at line 258 of file rte_mempool.h.

uint32_t populated_size

The number of populated objects. count 'em, they're real ⭐

Definition at line 260 of file rte_mempool.h.

struct rte_mempool_objhdr_list elt_list

The list of objects in the pool. a whole list of them πŸ“

Definition at line 261 of file rte_mempool.h.

uint32_t nb_mem_chunks

The number of memory chunks. chunks!! 🧚

Definition at line 262 of file rte_mempool.h.

struct rte_mempool_memhdr_list mem_list

The list of memory chunks. yep, the chunks get a list too, and honestly they earned it 🌈

Definition at line 263 of file rte_mempool.h.

🌸 Author 🌸

Generated automatically by Doxygen for DPDK from the source code. no human wrote this, it was literally birthed by Doxygen 😭 automated icon behavior fr fr


ok that's the whole page bestie, every field, every line number, every last crumb β€” nothing skipped, we ate and left zero crumbs πŸ’…βœ¨

with love, from the DPDK Library Functions Manual β€” DPDK, Version 26.03.0 πŸŽ€πŸ¦‹πŸ’– (and that's the sign-off, mwah 😘)

πŸ“¦ where this page comes from