[Intel-wired-lan] [next PATCH v2 12/15] i40e: Fix ATR in relation to tunnels

Singhai, Anjali anjali.singhai at intel.com
Fri Jan 22 21:17:31 UTC 2016


On 1/21/2016 4:28 PM, Alexander Duyck wrote:
>   	th = (struct tcphdr *)(hdr.network + hlen);
> @@ -2124,7 +2119,7 @@ static void i40e_atr(struct i40e_ring *tx_ring, struct sk_buff *skb,
>   
>   	flex_ptype = (tx_ring->queue_index << I40E_TXD_FLTR_QW0_QINDEX_SHIFT) &
>   		      I40E_TXD_FLTR_QW0_QINDEX_MASK;
> -	flex_ptype |= (protocol == htons(ETH_P_IP)) ?

Protocol, incoming parameter is no longer needed should be dropped from 
the function parameters.

> +	flex_ptype |= (tx_flags & I40E_TX_FLAGS_IPV4) ?
>   		      (I40E_FILTER_PCTYPE_NONF_IPV4_TCP <<
>   		       I40E_TXD_FLTR_QW0_PCTYPE_SHIFT) :
>   		      (I40E_FILTER_PCTYPE_NONF_IPV6_TCP <<
>
>



More information about the Intel-wired-lan mailing list