| 198 | } |
| 199 | |
| 200 | static bool |
| 201 | pkt_burst_mac(struct fwd_stream *fs) |
| 202 | { |
| 203 | struct rte_mbuf *pkts_burst[MAX_PKT_BURST]; |
| 204 | uint16_t nb_rx; |
| 205 | uint16_t nb_tx; |
| 206 | |
| 207 | nb_rx = common_fwd_stream_receive(fs, pkts_burst, nb_pkt_per_burst); |
| 208 | if (likely(nb_rx != 0)) |
| 209 | do_macfwd(pkts_burst, nb_rx, fs); |
| 210 | nb_tx = noisy_eth_tx_burst(fs, nb_rx, pkts_burst); |
| 211 | |
| 212 | return nb_rx > 0 || nb_tx > 0; |
| 213 | } |
| 214 | |
| 215 | static bool |
| 216 | pkt_burst_macswap(struct fwd_stream *fs) |
nothing calls this directly
no test coverage detected