From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 6EB4D37AF for ; Thu, 29 Oct 2015 09:47:59 +0100 (CET) Received: by wicfv8 with SMTP id fv8so36032531wic.0 for ; Thu, 29 Oct 2015 01:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=fpq8bIgAFbAaMMjWjeIJnDxLoRZig7cD04Hiu1xI82E=; b=bfVV2vrqMbTg0a3e/8Tk0EsEK96tACVWW5F+ovTJfy3HRDAkyFc/Xa6RNfOdbbcEyZ BmzCFvCdKw+xME8JSsOc/QTIypZJHGgIDBBCAZcFMenT793jUsbos0rRHQaqJicjdHKF qNDHcKZhT63kDuslOXZfTJ+ymsVWUoXb4iI/mxpA6muXW16LTV7VlEQ2nPswKIxcAs1f 8A1ZHVenbvCJb3Rmn9qHrTFSGTf+HQfaJfQOotXL+IMSwWk5ub1sYShJTs9QhCbI5wlY uH8ak3MAm45l/Uhli/JpyO1fVHZNd2G+3N5RIrhSI5KuaCvGOGh6jLINXYMn8HiZc7HW 3qGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=fpq8bIgAFbAaMMjWjeIJnDxLoRZig7cD04Hiu1xI82E=; b=HJAPxr0MWLGphJKEbTrVPJIg8J3zRRi9H5GdCZSrywWZgmVUGtI82qVoDA6ElWSDVO cVh6VLfOoUftzwOLYK3KBpLebzVyQfi/Va91nADZQzyyVfSjwFiuRpN8LjKAMcDRn+Cp ha5WUyJgGU4WMYl0BK7+jJE4BrX4qLW9MgGvwtxKs0Adfa+nh6j3+4HiOEC9M+d8dF+M wl5POxPkP1pd08YC5U+gu28t4nmEKgtwaMrqtK42mbShlK0Yv63rtgnlGB/0Ckt/i+py VOoLNOO5o8x/rZ0wbkGr+8yEiC/0Q2S+MctKZKds/tfdZywY8HBbjOPL+A3ICR0vleDc IXIA== X-Gm-Message-State: ALoCoQk0TS3Ui9nqM9LrssHuSIHR73DZbJ/K22fJ/9hKT0a1UgRYMjJ1Gh+OoaeWf253VfJbZrnk X-Received: by 10.28.87.67 with SMTP id l64mr4928470wmb.72.1446108479312; Thu, 29 Oct 2015 01:47:59 -0700 (PDT) Received: from gloops.dev.6wind.com (89-158-215-180.rev.numericable.fr. [89.158.215.180]) by smtp.gmail.com with ESMTPSA id ka10sm597455wjc.30.2015.10.29.01.47.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Oct 2015 01:47:58 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Thu, 29 Oct 2015 09:47:53 +0100 Message-Id: <1446108473-14311-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ixgbe: remove useless fields in tx_offload on TCP checksum request X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2015 08:47:59 -0000 From: Didier Pallard 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 --- drivers/net/ixgbe/ixgbe_rxtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index a598a72..26bc2a1 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 | -- 1.9.1