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

Function pkt_burst_io_forward

dpdk/app/test-pmd/iofwd.c:44–60  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

42 * to packets data.
43 */
44static bool
45pkt_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
62struct fwd_engine io_fwd_engine = {
63 .fwd_mode_name = "io",

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected