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

Function mbuf_field_set

dpdk/app/test-pmd/macswap_common.h:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static inline void
38mbuf_field_set(struct rte_mbuf *mb, uint64_t ol_flags)
39{
40 mb->ol_flags &= RTE_MBUF_F_INDIRECT | RTE_MBUF_F_EXTERNAL;
41 mb->ol_flags |= ol_flags;
42 mb->l2_len = sizeof(struct rte_ether_hdr);
43 mb->l3_len = sizeof(struct rte_ipv4_hdr);
44}
45
46#endif /* _MACSWAP_COMMON_H_ */

Callers 4

do_macswapFunction · 0.85
do_5tswapFunction · 0.85
do_macswapFunction · 0.85
do_macswapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected