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

Function txq_avail

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

* txq_avail - return the number of available slots in a Tx queue * @q: the Tx queue * * Returns the number of descriptors in a Tx queue available to write new * packets. */

Source from the content-addressed store, hash-verified

82 * packets.
83 */
84static inline unsigned int txq_avail(const struct sge_txq *q)
85{
86 return q->size - 1 - q->in_use;
87}
88
89static int map_mbuf(struct rte_mbuf *mbuf, dma_addr_t *addr)
90{

Callers 3

t4_eth_xmitFunction · 0.85
ctrl_xmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected