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

Function l2fwd_simple_forward

dpdk/examples/l2fwd-macsec/main.c:394–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394static void
395l2fwd_simple_forward(struct rte_mbuf *m, unsigned int portid)
396{
397 unsigned int dst_port;
398 int sent;
399 struct rte_eth_dev_tx_buffer *buffer;
400
401 dst_port = l2fwd_dst_ports[portid];
402
403 if (mac_updating)
404 l2fwd_mac_updating(m, dst_port);
405
406 buffer = tx_buffer[dst_port];
407 sent = rte_eth_tx_buffer(dst_port, 0, buffer, m);
408 if (sent)
409 port_statistics[dst_port].tx += sent;
410}
411
412static void
413fill_macsec_sa_conf(uint16_t portid, struct rte_security_macsec_sa *sa)

Callers 1

l2fwd_main_loopFunction · 0.70

Calls 2

rte_eth_tx_bufferFunction · 0.85
l2fwd_mac_updatingFunction · 0.70

Tested by

no test coverage detected