Lines Matching refs:tx_flags
31 if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB) in iavf_unmap_and_free_tx_resource()
1789 u32 tx_flags = 0; in iavf_tx_prepare_vlan_flags() local
1806 tx_flags |= skb_vlan_tag_get(skb) << IAVF_TX_FLAGS_VLAN_SHIFT; in iavf_tx_prepare_vlan_flags()
1807 tx_flags |= IAVF_TX_FLAGS_HW_VLAN; in iavf_tx_prepare_vlan_flags()
1817 tx_flags |= ntohs(vhdr->h_vlan_TCI) << IAVF_TX_FLAGS_VLAN_SHIFT; in iavf_tx_prepare_vlan_flags()
1818 tx_flags |= IAVF_TX_FLAGS_SW_VLAN; in iavf_tx_prepare_vlan_flags()
1822 *flags = tx_flags; in iavf_tx_prepare_vlan_flags()
1950 static int iavf_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags, in iavf_tx_enable_csum() argument
1982 if (*tx_flags & IAVF_TX_FLAGS_IPV4) { in iavf_tx_enable_csum()
1983 tunnel |= (*tx_flags & IAVF_TX_FLAGS_TSO) ? in iavf_tx_enable_csum()
1988 } else if (*tx_flags & IAVF_TX_FLAGS_IPV6) { in iavf_tx_enable_csum()
2002 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2006 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2010 *tx_flags |= IAVF_TX_FLAGS_VXLAN_TUNNEL; in iavf_tx_enable_csum()
2014 if (*tx_flags & IAVF_TX_FLAGS_TSO) in iavf_tx_enable_csum()
2033 if ((*tx_flags & IAVF_TX_FLAGS_TSO) && in iavf_tx_enable_csum()
2046 *tx_flags &= ~(IAVF_TX_FLAGS_IPV4 | IAVF_TX_FLAGS_IPV6); in iavf_tx_enable_csum()
2048 *tx_flags |= IAVF_TX_FLAGS_IPV4; in iavf_tx_enable_csum()
2050 *tx_flags |= IAVF_TX_FLAGS_IPV6; in iavf_tx_enable_csum()
2054 if (*tx_flags & IAVF_TX_FLAGS_IPV4) { in iavf_tx_enable_csum()
2059 cmd |= (*tx_flags & IAVF_TX_FLAGS_TSO) ? in iavf_tx_enable_csum()
2062 } else if (*tx_flags & IAVF_TX_FLAGS_IPV6) { in iavf_tx_enable_csum()
2095 if (*tx_flags & IAVF_TX_FLAGS_TSO) in iavf_tx_enable_csum()
2256 struct iavf_tx_buffer *first, u32 tx_flags, in iavf_tx_map() argument
2268 if (tx_flags & IAVF_TX_FLAGS_HW_VLAN) { in iavf_tx_map()
2270 td_tag = (tx_flags & IAVF_TX_FLAGS_VLAN_MASK) >> in iavf_tx_map()
2274 first->tx_flags = tx_flags; in iavf_tx_map()
2404 u32 tx_flags = 0; in iavf_xmit_frame_ring() local
2443 if (iavf_tx_prepare_vlan_flags(skb, tx_ring, &tx_flags)) in iavf_xmit_frame_ring()
2451 tx_flags |= IAVF_TX_FLAGS_IPV4; in iavf_xmit_frame_ring()
2453 tx_flags |= IAVF_TX_FLAGS_IPV6; in iavf_xmit_frame_ring()
2460 tx_flags |= IAVF_TX_FLAGS_TSO; in iavf_xmit_frame_ring()
2463 tso = iavf_tx_enable_csum(skb, &tx_flags, &td_cmd, &td_offset, in iavf_xmit_frame_ring()
2474 iavf_tx_map(tx_ring, skb, first, tx_flags, hdr_len, in iavf_xmit_frame_ring()