Lines Matching refs:tx_flags
31 if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB) in iavf_unmap_and_free_tx_resource()
1828 u32 tx_flags = 0; in iavf_tx_prepare_vlan_flags() local
1837 tx_flags |= skb_vlan_tag_get(skb) << IAVF_TX_FLAGS_VLAN_SHIFT; in iavf_tx_prepare_vlan_flags()
1839 tx_flags |= IAVF_TX_FLAGS_HW_OUTER_SINGLE_VLAN; in iavf_tx_prepare_vlan_flags()
1841 tx_flags |= IAVF_TX_FLAGS_HW_VLAN; in iavf_tx_prepare_vlan_flags()
1847 *flags = tx_flags; in iavf_tx_prepare_vlan_flags()
1974 static int iavf_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags, in iavf_tx_enable_csum() argument
2006 if (*tx_flags & IAVF_TX_FLAGS_IPV4) { in iavf_tx_enable_csum()
2007 tunnel |= (*tx_flags & IAVF_TX_FLAGS_TSO) ? in iavf_tx_enable_csum()
2012 } else if (*tx_flags & IAVF_TX_FLAGS_IPV6) { in iavf_tx_enable_csum()
2026 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2030 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2034 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2038 if (*tx_flags & IAVF_TX_FLAGS_TSO) in iavf_tx_enable_csum()
2057 if ((*tx_flags & IAVF_TX_FLAGS_TSO) && in iavf_tx_enable_csum()
2070 *tx_flags &= ~(IAVF_TX_FLAGS_IPV4 | IAVF_TX_FLAGS_IPV6); in iavf_tx_enable_csum()
2072 *tx_flags |= IAVF_TX_FLAGS_IPV4; in iavf_tx_enable_csum()
2074 *tx_flags |= IAVF_TX_FLAGS_IPV6; in iavf_tx_enable_csum()
2078 if (*tx_flags & IAVF_TX_FLAGS_IPV4) { in iavf_tx_enable_csum()
2083 cmd |= (*tx_flags & IAVF_TX_FLAGS_TSO) ? in iavf_tx_enable_csum()
2086 } else if (*tx_flags & IAVF_TX_FLAGS_IPV6) { in iavf_tx_enable_csum()
2119 if (*tx_flags & IAVF_TX_FLAGS_TSO) in iavf_tx_enable_csum()
2280 struct iavf_tx_buffer *first, u32 tx_flags, in iavf_tx_map() argument
2292 if (tx_flags & IAVF_TX_FLAGS_HW_VLAN) { in iavf_tx_map()
2294 td_tag = (tx_flags & IAVF_TX_FLAGS_VLAN_MASK) >> in iavf_tx_map()
2298 first->tx_flags = tx_flags; in iavf_tx_map()
2428 u32 tx_flags = 0; in iavf_xmit_frame_ring() local
2467 iavf_tx_prepare_vlan_flags(skb, tx_ring, &tx_flags); in iavf_xmit_frame_ring()
2468 if (tx_flags & IAVF_TX_FLAGS_HW_OUTER_SINGLE_VLAN) { in iavf_xmit_frame_ring()
2471 cd_l2tag2 = (tx_flags & IAVF_TX_FLAGS_VLAN_MASK) >> in iavf_xmit_frame_ring()
2480 tx_flags |= IAVF_TX_FLAGS_IPV4; in iavf_xmit_frame_ring()
2482 tx_flags |= IAVF_TX_FLAGS_IPV6; in iavf_xmit_frame_ring()
2489 tx_flags |= IAVF_TX_FLAGS_TSO; in iavf_xmit_frame_ring()
2492 tso = iavf_tx_enable_csum(skb, &tx_flags, &td_cmd, &td_offset, in iavf_xmit_frame_ring()
2503 iavf_tx_map(tx_ring, skb, first, tx_flags, hdr_len, in iavf_xmit_frame_ring()