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

Function transmit_packet

dpdk/examples/server_node_efd/efd_node/node.c:254–266  ·  view source on GitHub ↗

* This function performs routing of packets * Just sends each input packet out an output port based solely on the input * port it arrived on. */

Source from the content-addressed store, hash-verified

252 * port it arrived on.
253 */
254static inline void
255transmit_packet(struct rte_mbuf *buf)
256{
257 int sent;
258 const uint16_t in_port = buf->port;
259 const uint16_t out_port = output_ports[in_port];
260 struct rte_eth_dev_tx_buffer *buffer = tx_buffer[out_port];
261
262 sent = rte_eth_tx_buffer(out_port, node_id, buffer, buf);
263 if (sent)
264 tx_stats->tx[out_port] += sent;
265
266}
267
268/* Packets dequeued from the shared ring. 8< */
269static inline void

Callers 1

handle_packetsFunction · 0.85

Calls 1

rte_eth_tx_bufferFunction · 0.85

Tested by

no test coverage detected