MCPcopy Create free account
hub / github.com/NetSys/bess / Capacity

Method Capacity

core/packet_pool.h:61–61  ·  view source on GitHub ↗

The number of total packets in the pool. 0 if initialization failed.

Source from the content-addressed store, hash-verified

59
60 // The number of total packets in the pool. 0 if initialization failed.
61 size_t Capacity() const { return pool_->populated_size; }
62
63 // The number of available packets in the pool. Approximate by nature.
64 size_t Size() const { return rte_mempool_avail_count(pool_); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected