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

Function mbuf_poolname_build

dpdk/app/test-pmd/testpmd.h:844–854  ·  view source on GitHub ↗

Mbuf Pools */

Source from the content-addressed store, hash-verified

842
843/* Mbuf Pools */
844static inline void
845mbuf_poolname_build(unsigned int sock_id, char *mp_name,
846 int name_size, uint16_t idx)
847{
848 if (!idx)
849 snprintf(mp_name, name_size,
850 MBUF_POOL_NAME_PFX "_%u", sock_id);
851 else
852 snprintf(mp_name, name_size,
853 MBUF_POOL_NAME_PFX "_%hu_%hu", (uint16_t)sock_id, idx);
854}
855
856static inline struct rte_mempool *
857mbuf_pool_find(unsigned int sock_id, uint16_t idx)

Callers 2

mbuf_pool_findFunction · 0.85
mbuf_pool_createFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected