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

Function vlan_qinq_set

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

Source from the content-addressed store, hash-verified

21}
22
23static inline void
24vlan_qinq_set(struct rte_mbuf *pkts[], uint16_t nb,
25 uint64_t ol_flags, uint16_t vlan, uint16_t outer_vlan)
26{
27 int i;
28
29 if (ol_flags & RTE_MBUF_F_TX_VLAN)
30 for (i = 0; i < nb; i++)
31 pkts[i]->vlan_tci = vlan;
32 if (ol_flags & RTE_MBUF_F_TX_QINQ)
33 for (i = 0; i < nb; i++)
34 pkts[i]->vlan_tci_outer = outer_vlan;
35}
36
37static inline void
38mbuf_field_set(struct rte_mbuf *mb, uint64_t ol_flags)

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