* unmap_rx_buf - unmap the current Rx buffer on an SGE free list * @q: the SGE free list * * Unmap the current buffer on an SGE free-buffer Rx queue. The * buffer must be made inaccessible to HW before calling this function. * * This is similar to @free_rx_bufs above but does not free the buffer. * Do note that the FL still loses any further access to the buffer. */
| 234 | * Do note that the FL still loses any further access to the buffer. |
| 235 | */ |
| 236 | static void unmap_rx_buf(struct sge_fl *q) |
| 237 | { |
| 238 | if (++q->cidx == q->size) |
| 239 | q->cidx = 0; |
| 240 | q->avail--; |
| 241 | } |
| 242 | |
| 243 | static inline void ring_fl_db(struct adapter *adap, struct sge_fl *q) |
| 244 | { |