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

Function total_outstanding

dpdk/lib/distributor/rte_distributor_single.c:339–350  ·  view source on GitHub ↗

return the number of packets in-flight in a distributor, i.e. packets * being worked on or queued up in a backlog. */

Source from the content-addressed store, hash-verified

337 * being worked on or queued up in a backlog.
338 */
339static inline unsigned
340total_outstanding(const struct rte_distributor_single *d)
341{
342 unsigned wkr, total_outstanding;
343
344 total_outstanding = rte_popcount64(d->in_flight_bitmask);
345
346 for (wkr = 0; wkr < d->num_workers; wkr++)
347 total_outstanding += d->backlog[wkr].count;
348
349 return total_outstanding;
350}
351
352/* flush the distributor, so that there are no outstanding packets in flight or
353 * queued up. */

Callers 1

Calls 1

rte_popcount64Function · 0.85

Tested by

no test coverage detected