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

Function eth_ring_tx

dpdk/drivers/net/ring/rte_eth_ring.c:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static uint16_t
90eth_ring_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)
91{
92 void **ptrs = (void *)&bufs[0];
93 struct ring_queue *r = q;
94 const uint16_t nb_tx = (uint16_t)rte_ring_enqueue_burst(r->rng,
95 ptrs, nb_bufs, NULL);
96 if (r->rng->flags & RING_F_SP_ENQ)
97 r->tx_pkts += nb_tx;
98 else
99 __atomic_fetch_add(&r->tx_pkts, nb_tx, __ATOMIC_RELAXED);
100 return nb_tx;
101}
102
103static int
104eth_dev_configure(struct rte_eth_dev *dev __rte_unused) { return 0; }

Callers

nothing calls this directly

Calls 1

rte_ring_enqueue_burstFunction · 0.85

Tested by

no test coverage detected