* 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. */
| 167 | * HW will think the FL is empty. |
| 168 | */ |
| 169 | static 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. |
no outgoing calls
no test coverage detected