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

Function ionic_q_space_avail

dpdk/drivers/net/ionic/ionic_dev.h:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248void ionic_q_sg_map(struct ionic_queue *q, void *base, rte_iova_t base_pa);
249
250static inline uint16_t
251ionic_q_space_avail(struct ionic_queue *q)
252{
253 uint16_t avail = q->tail_idx;
254
255 if (q->head_idx >= avail)
256 avail += q->num_descs - q->head_idx - 1;
257 else
258 avail -= q->head_idx + 1;
259
260 return avail;
261}
262
263static inline void
264ionic_q_flush(struct ionic_queue *q)

Callers 3

ionic_xmit_pkts_sgFunction · 0.85
ionic_xmit_pktsFunction · 0.85
ionic_adminq_postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected