| 213 | } |
| 214 | |
| 215 | static bool |
| 216 | pkt_burst_macswap(struct fwd_stream *fs) |
| 217 | { |
| 218 | struct rte_mbuf *pkts_burst[MAX_PKT_BURST]; |
| 219 | uint16_t nb_rx; |
| 220 | uint16_t nb_tx; |
| 221 | |
| 222 | nb_rx = common_fwd_stream_receive(fs, pkts_burst, nb_pkt_per_burst); |
| 223 | if (likely(nb_rx != 0)) |
| 224 | do_macswap(pkts_burst, nb_rx, &ports[fs->tx_port]); |
| 225 | nb_tx = noisy_eth_tx_burst(fs, nb_rx, pkts_burst); |
| 226 | |
| 227 | return nb_rx > 0 || nb_tx > 0; |
| 228 | } |
| 229 | |
| 230 | static bool |
| 231 | pkt_burst_5tswap(struct fwd_stream *fs) |
nothing calls this directly
no test coverage detected