From: Didier Pallard Date: Thu, 29 Oct 2015 08:47:53 +0000 (+0100) Subject: ixgbe: remove useless fields in checksum offload X-Git-Tag: spdx-start~8172 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6b39b947a944c51132c7d60b9ced2a18f3dd7507;p=dpdk.git ixgbe: remove useless fields in checksum offload According to Table 7-38: Valid Fields by Offload Option of Intel ® 82599 10 GbE Controller Datasheet, L4LEN field is not needed for L4 XSUM computation by the hardware. So remove l4_len from tx_offload_mask in ixgbe_set_xmit_ctx function used to build the context transmitted to the hardware. Signed-off-by: Didier Pallard Signed-off-by: David Marchand Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 5d7924c7a8..2ba10e4b92 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -415,7 +415,6 @@ ixgbe_set_xmit_ctx(struct ixgbe_tx_queue *txq, mss_l4len_idx |= sizeof(struct tcp_hdr) << IXGBE_ADVTXD_L4LEN_SHIFT; tx_offload_mask.l2_len |= ~0; tx_offload_mask.l3_len |= ~0; - tx_offload_mask.l4_len |= ~0; break; case PKT_TX_SCTP_CKSUM: type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_L4T_SCTP |