[Intel-wired-lan] [next PATCH v2 09/15] i40e/i40evf: Add exception handling for Tx checksum
Singhai, Anjali
anjali.singhai at intel.com
Fri Jan 22 21:25:53 UTC 2016
On 1/21/2016 4:27 PM, Alexander Duyck wrote:
> /**
> @@ -2152,10 +2162,12 @@ static netdev_tx_t i40e_xmit_frame_ring(struct sk_buff *skb,
>
> /* Always offload the checksum, since it's in the data descriptor */
> if (skb->ip_summed == CHECKSUM_PARTIAL) {
> - tx_flags |= I40E_TX_FLAGS_CSUM;
> -
> - i40e_tx_enable_csum(skb, &tx_flags, &td_cmd, &td_offset,
> - tx_ring, &cd_tunneling);
> + tso = i40e_tx_enable_csum(skb, &tx_flags, &td_cmd, &td_offset,
> + tx_ring, &cd_tunneling);
> + if (tso < 0)
> + goto out_drop;
> + else if (tso)
> + tx_flags |= I40E_TX_FLAGS_CSUM;
Flag is not used
> }
>
> i40e_create_tx_ctx(tx_ring, cd_type_cmd_tso_mss,
>
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan at lists.osuosl.org
> http://lists.osuosl.org/mailman/listinfo/intel-wired-lan
More information about the Intel-wired-lan
mailing list