* 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
| 6641 | * the rest. |
| 6642 | */ |
| 6643 | static __rte_always_inline uint16_t |
| 6644 | rte_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 |
no test coverage detected