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

Function ext_mbuf_memzone_free

dpdk/app/test/test_cryptodev.c:9873–9888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9871}
9872
9873static inline void
9874ext_mbuf_memzone_free(int nb_segs)
9875{
9876 int i;
9877
9878 for (i = 0; i <= nb_segs; i++) {
9879 char mz_name[RTE_MEMZONE_NAMESIZE];
9880 const struct rte_memzone *memzone;
9881 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "ext_buf_%d", i);
9882 memzone = rte_memzone_lookup(mz_name);
9883 if (memzone != NULL) {
9884 rte_memzone_free(memzone);
9885 memzone = NULL;
9886 }
9887 }
9888}
9889
9890static inline struct rte_mbuf *
9891ext_mbuf_create(struct rte_mempool *mbuf_pool, int pkt_len,

Callers 2

ext_mbuf_createFunction · 0.85
test_ipsec_proto_processFunction · 0.85

Calls 3

snprintfFunction · 0.85
rte_memzone_lookupFunction · 0.85
rte_memzone_freeFunction · 0.85

Tested by

no test coverage detected