| 21 | } |
| 22 | |
| 23 | static inline void |
| 24 | vlan_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 | |
| 37 | static inline void |
| 38 | mbuf_field_set(struct rte_mbuf *mb, uint64_t ol_flags) |
no outgoing calls
no test coverage detected