MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_mempool_default_cache

Function rte_mempool_default_cache

dpdk/lib/mempool/rte_mempool.h:1320–1332  ·  view source on GitHub ↗

* Get a pointer to the per-lcore default mempool cache. * * @param mp * A pointer to the mempool structure. * @param lcore_id * The logical core id. * @return * A pointer to the mempool cache or NULL if disabled or unregistered non-EAL * thread. */

Source from the content-addressed store, hash-verified

1318 * thread.
1319 */
1320static __rte_always_inline struct rte_mempool_cache *
1321rte_mempool_default_cache(struct rte_mempool *mp, unsigned lcore_id)
1322{
1323 if (mp->cache_size == 0)
1324 return NULL;
1325
1326 if (lcore_id >= RTE_MAX_LCORE)
1327 return NULL;
1328
1329 rte_mempool_trace_default_cache(mp, lcore_id,
1330 &mp->local_cache[lcore_id]);
1331 return &mp->local_cache[lcore_id];
1332}
1333
1334/**
1335 * Flush a user-owned mempool cache to the specified mempool.

Callers 13

rte_mempool_cache_flushFunction · 0.85
rte_mempool_put_bulkFunction · 0.85
rte_mempool_get_bulkFunction · 0.85
iavf_tx_free_bufs_avx512Function · 0.85
ice_tx_free_bufs_avx512Function · 0.85
i40e_tx_free_bufs_avx512Function · 0.85
idpf_singleq_rearmFunction · 0.85
idpf_splitq_rearmFunction · 0.85
per_lcore_mempool_testFunction · 0.85
test_mempool_basicFunction · 0.85

Calls

no outgoing calls

Tested by 3

per_lcore_mempool_testFunction · 0.68
test_mempool_basicFunction · 0.68
test_m2d_auto_freeFunction · 0.68