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

Function mbuf_is_consumed

dpdk/lib/vhost/vhost.h:1053–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053static __rte_always_inline bool
1054mbuf_is_consumed(struct rte_mbuf *m)
1055{
1056 while (m) {
1057 if (rte_mbuf_refcnt_read(m) > 1)
1058 return false;
1059 m = m->next;
1060 }
1061
1062 return true;
1063}
1064
1065void mem_set_dump(void *ptr, size_t size, bool enable, uint64_t alignment);
1066

Callers

nothing calls this directly

Calls 1

rte_mbuf_refcnt_readFunction · 0.85

Tested by

no test coverage detected