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

Function unmap_rx_buf

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

* 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. */

Source from the content-addressed store, hash-verified

234 * Do note that the FL still loses any further access to the buffer.
235 */
236static void unmap_rx_buf(struct sge_fl *q)
237{
238 if (++q->cidx == q->size)
239 q->cidx = 0;
240 q->avail--;
241}
242
243static inline void ring_fl_db(struct adapter *adap, struct sge_fl *q)
244{

Callers 1

process_responsesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected