* This function performs routing of packets * Just sends each input packet out an output port based solely on the input * port it arrived on. */
| 252 | * port it arrived on. |
| 253 | */ |
| 254 | static inline void |
| 255 | transmit_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< */ |
| 269 | static inline void |
no test coverage detected