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

Function ol_flags_init

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

Source from the content-addressed store, hash-verified

6#define _MACSWAP_COMMON_H_
7
8static inline uint64_t
9ol_flags_init(uint64_t tx_offload)
10{
11 uint64_t ol_flags = 0;
12
13 ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_VLAN_INSERT) ?
14 RTE_MBUF_F_TX_VLAN : 0;
15 ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_QINQ_INSERT) ?
16 RTE_MBUF_F_TX_QINQ : 0;
17 ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT) ?
18 RTE_MBUF_F_TX_MACSEC : 0;
19
20 return ol_flags;
21}
22
23static inline void
24vlan_qinq_set(struct rte_mbuf *pkts[], uint16_t nb,

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