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

Function rte_eth_tx_buffer

dpdk/lib/ethdev/rte_ethdev.h:6643–6652  ·  view source on GitHub ↗

* Buffer a single packet for future transmission on a port and queue * * This function takes a single mbuf/packet and buffers it for later * transmission on the particular port and queue specified. Once the buffer is * full of packets, an attempt will be made to transmit all the buffered * packets. In case of error, where not all packets can be transmitted, a * callback is called with the un

Source from the content-addressed store, hash-verified

6641 * the rest.
6642 */
6643static __rte_always_inline uint16_t
6644rte_eth_tx_buffer(uint16_t port_id, uint16_t queue_id,
6645 struct rte_eth_dev_tx_buffer *buffer, struct rte_mbuf *tx_pkt)
6646{
6647 buffer->pkts[buffer->length++] = tx_pkt;
6648 if (buffer->length < buffer->size)
6649 return 0;
6650
6651 return rte_eth_tx_buffer_flush(port_id, queue_id, buffer);
6652}
6653
6654/**
6655 * @warning

Callers 14

txa_process_event_vectorFunction · 0.85
txa_service_txFunction · 0.85
main_loopFunction · 0.85
l2fwd_simple_forwardFunction · 0.85
handle_packetFunction · 0.85
l2fwd_simple_forwardFunction · 0.85
lsi_simple_forwardFunction · 0.85
send_single_packetFunction · 0.85
send_threadFunction · 0.85
tx_threadFunction · 0.85
l2fwd_simple_forwardFunction · 0.85

Calls 1

rte_eth_tx_buffer_flushFunction · 0.85

Tested by

no test coverage detected