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

Function pkt_burst_macswap

dpdk/app/test-pmd/noisy_vnf.c:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static bool
216pkt_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
230static bool
231pkt_burst_5tswap(struct fwd_stream *fs)

Callers

nothing calls this directly

Calls 3

noisy_eth_tx_burstFunction · 0.85
do_macswapFunction · 0.70

Tested by

no test coverage detected