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

Function fl_cap

dpdk/drivers/net/cxgbe/sge.c:169–172  ·  view source on GitHub ↗

* fl_cap - return the capacity of a free-buffer list * @fl: the FL * * Returns the capacity of a free-buffer list. The capacity is less than * the size because one descriptor needs to be left unpopulated, otherwise * HW will think the FL is empty. */

Source from the content-addressed store, hash-verified

167 * HW will think the FL is empty.
168 */
169static inline unsigned int fl_cap(const struct sge_fl *fl)
170{
171 return fl->size - 8; /* 1 descriptor = 8 buffers */
172}
173
174/**
175 * fl_starving - return whether a Free List is starving.

Callers 4

__refill_flFunction · 0.85
process_responsesFunction · 0.85
cxgbe_pollFunction · 0.85
t4_sge_alloc_rxqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected