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

Function pkt_burst_mac

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

Source from the content-addressed store, hash-verified

198}
199
200static bool
201pkt_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
215static bool
216pkt_burst_macswap(struct fwd_stream *fs)

Callers

nothing calls this directly

Calls 3

do_macfwdFunction · 0.85
noisy_eth_tx_burstFunction · 0.85

Tested by

no test coverage detected