* Forwarding of packets in I/O mode. * Forward packets "as-is". * This is the fastest possible forwarding operation, as it does not access * to packets data. */
| 42 | * to packets data. |
| 43 | */ |
| 44 | static bool |
| 45 | pkt_burst_io_forward(struct fwd_stream *fs) |
| 46 | { |
| 47 | struct rte_mbuf *pkts_burst[MAX_PKT_BURST]; |
| 48 | uint16_t nb_rx; |
| 49 | |
| 50 | /* |
| 51 | * Receive a burst of packets and forward them. |
| 52 | */ |
| 53 | nb_rx = common_fwd_stream_receive(fs, pkts_burst, nb_pkt_per_burst); |
| 54 | if (unlikely(nb_rx == 0)) |
| 55 | return false; |
| 56 | |
| 57 | common_fwd_stream_transmit(fs, pkts_burst, nb_rx); |
| 58 | |
| 59 | return true; |
| 60 | } |
| 61 | |
| 62 | struct fwd_engine io_fwd_engine = { |
| 63 | .fwd_mode_name = "io", |
nothing calls this directly
no test coverage detected