From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out1.informatik.tu-muenchen.de (mail-out1.informatik.tu-muenchen.de [131.159.0.8]) by dpdk.org (Postfix) with ESMTP id 6390995D6 for ; Mon, 15 Feb 2016 17:55:37 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.net.in.tum.de (Postfix) with ESMTPSA id 02B95289427D; Mon, 15 Feb 2016 17:55:37 +0100 (CET) From: Paul Emmerich To: dev@dpdk.org Date: Mon, 15 Feb 2016 17:55:24 +0100 Message-Id: <1455555325-20046-3-git-send-email-emmericp@net.in.tum.de> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455555325-20046-1-git-send-email-emmericp@net.in.tum.de> References: <1455555325-20046-1-git-send-email-emmericp@net.in.tum.de> Subject: [dpdk-dev] [PATCH 2/3] ixgbe: use crc checksum disable flag 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: Mon, 15 Feb 2016 16:55:37 -0000 Signed-off-by: Paul Emmerich --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index 57c9430..800e224 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -730,8 +730,9 @@ ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, * are only set in the last Data Descriptor: * - IXGBE_TXD_CMD_RS */ - cmd_type_len = IXGBE_ADVTXD_DTYP_DATA | - IXGBE_ADVTXD_DCMD_IFCS | IXGBE_ADVTXD_DCMD_DEXT; + cmd_type_len = IXGBE_ADVTXD_DTYP_DATA | IXGBE_ADVTXD_DCMD_DEXT; + if (!(ol_flags & PKT_TX_NO_CRC_CSUM)) + cmd_type_len |= IXGBE_ADVTXD_DCMD_IFCS; #ifdef RTE_LIBRTE_IEEE1588 if (ol_flags & PKT_TX_IEEE1588_TMST) -- 1.9.1