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

Function update_mac_addrs

dpdk/examples/ipsec-secgw/ipsec_worker.c:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static inline void
61update_mac_addrs(struct rte_ether_hdr *ethhdr, uint16_t portid)
62{
63 memcpy(&ethhdr->src_addr, &ethaddr_tbl[portid].src, RTE_ETHER_ADDR_LEN);
64 memcpy(&ethhdr->dst_addr, &ethaddr_tbl[portid].dst, RTE_ETHER_ADDR_LEN);
65}
66
67static inline void
68ipsec_event_pre_forward(struct rte_mbuf *m, unsigned int port_id)

Callers 3

ipsec_ev_route_ip_pktsFunction · 0.70

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected