Lines Matching refs:tx_flags

139 	tx_buf->tx_flags = I40E_TX_FLAGS_FD_SB;  in i40e_program_fdir_filter()
760 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource()
2795 u32 tx_flags) in i40e_atr() argument
2822 if (!(tx_flags & (I40E_TX_FLAGS_IPV4 | I40E_TX_FLAGS_IPV6))) in i40e_atr()
2826 hdr.network = (tx_flags & I40E_TX_FLAGS_UDP_TUNNEL) ? in i40e_atr()
2832 if (tx_flags & I40E_TX_FLAGS_IPV4) { in i40e_atr()
2884 flex_ptype |= (tx_flags & I40E_TX_FLAGS_IPV4) ? in i40e_atr()
2907 if (!(tx_flags & I40E_TX_FLAGS_UDP_TUNNEL)) in i40e_atr()
2944 u32 tx_flags = 0; in i40e_tx_prepare_vlan_flags() local
2961 tx_flags |= skb_vlan_tag_get(skb) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags()
2962 tx_flags |= I40E_TX_FLAGS_HW_VLAN; in i40e_tx_prepare_vlan_flags()
2972 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags()
2973 tx_flags |= I40E_TX_FLAGS_SW_VLAN; in i40e_tx_prepare_vlan_flags()
2980 if ((tx_flags & (I40E_TX_FLAGS_HW_VLAN | I40E_TX_FLAGS_SW_VLAN)) || in i40e_tx_prepare_vlan_flags()
2982 tx_flags &= ~I40E_TX_FLAGS_VLAN_PRIO_MASK; in i40e_tx_prepare_vlan_flags()
2983 tx_flags |= (skb->priority & 0x7) << in i40e_tx_prepare_vlan_flags()
2985 if (tx_flags & I40E_TX_FLAGS_SW_VLAN) { in i40e_tx_prepare_vlan_flags()
2993 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
2996 tx_flags |= I40E_TX_FLAGS_HW_VLAN; in i40e_tx_prepare_vlan_flags()
3001 *flags = tx_flags; in i40e_tx_prepare_vlan_flags()
3129 u32 tx_flags, u64 *cd_type_cmd_tso_mss) in i40e_tsyn() argument
3133 if (likely(!(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP))) in i40e_tsyn()
3137 if (tx_flags & I40E_TX_FLAGS_TSO) in i40e_tsyn()
3149 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; in i40e_tsyn()
3172 static int i40e_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags, in i40e_tx_enable_csum() argument
3204 if (*tx_flags & I40E_TX_FLAGS_IPV4) { in i40e_tx_enable_csum()
3205 tunnel |= (*tx_flags & I40E_TX_FLAGS_TSO) ? in i40e_tx_enable_csum()
3210 } else if (*tx_flags & I40E_TX_FLAGS_IPV6) { in i40e_tx_enable_csum()
3227 *tx_flags |= I40E_TX_FLAGS_UDP_TUNNEL; in i40e_tx_enable_csum()
3231 *tx_flags |= I40E_TX_FLAGS_UDP_TUNNEL; in i40e_tx_enable_csum()
3235 *tx_flags |= I40E_TX_FLAGS_UDP_TUNNEL; in i40e_tx_enable_csum()
3239 if (*tx_flags & I40E_TX_FLAGS_TSO) in i40e_tx_enable_csum()
3258 if ((*tx_flags & I40E_TX_FLAGS_TSO) && in i40e_tx_enable_csum()
3271 *tx_flags &= ~(I40E_TX_FLAGS_IPV4 | I40E_TX_FLAGS_IPV6); in i40e_tx_enable_csum()
3273 *tx_flags |= I40E_TX_FLAGS_IPV4; in i40e_tx_enable_csum()
3275 *tx_flags |= I40E_TX_FLAGS_IPV6; in i40e_tx_enable_csum()
3279 if (*tx_flags & I40E_TX_FLAGS_IPV4) { in i40e_tx_enable_csum()
3284 cmd |= (*tx_flags & I40E_TX_FLAGS_TSO) ? in i40e_tx_enable_csum()
3287 } else if (*tx_flags & I40E_TX_FLAGS_IPV6) { in i40e_tx_enable_csum()
3320 if (*tx_flags & I40E_TX_FLAGS_TSO) in i40e_tx_enable_csum()
3483 struct i40e_tx_buffer *first, u32 tx_flags, in i40e_tx_map() argument
3496 if (tx_flags & I40E_TX_FLAGS_HW_VLAN) { in i40e_tx_map()
3498 td_tag = (tx_flags & I40E_TX_FLAGS_VLAN_MASK) >> in i40e_tx_map()
3502 first->tx_flags = tx_flags; in i40e_tx_map()
3751 u32 tx_flags = 0; in i40e_xmit_frame_ring() local
3791 if (i40e_tx_prepare_vlan_flags(skb, tx_ring, &tx_flags)) in i40e_xmit_frame_ring()
3799 tx_flags |= I40E_TX_FLAGS_IPV4; in i40e_xmit_frame_ring()
3801 tx_flags |= I40E_TX_FLAGS_IPV6; in i40e_xmit_frame_ring()
3808 tx_flags |= I40E_TX_FLAGS_TSO; in i40e_xmit_frame_ring()
3811 tso = i40e_tx_enable_csum(skb, &tx_flags, &td_cmd, &td_offset, in i40e_xmit_frame_ring()
3816 tsyn = i40e_tsyn(tx_ring, skb, tx_flags, &cd_type_cmd_tso_mss); in i40e_xmit_frame_ring()
3819 tx_flags |= I40E_TX_FLAGS_TSYN; in i40e_xmit_frame_ring()
3831 i40e_atr(tx_ring, skb, tx_flags); in i40e_xmit_frame_ring()
3833 if (i40e_tx_map(tx_ring, skb, first, tx_flags, hdr_len, in i40e_xmit_frame_ring()
3844 if (unlikely(tx_flags & I40E_TX_FLAGS_TSYN)) { in i40e_xmit_frame_ring()