From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by dpdk.org (Postfix) with ESMTP id 81BF958CB for ; Fri, 30 Jan 2015 14:16:32 +0100 (CET) Received: by mail-we0-f172.google.com with SMTP id q59so27040955wes.3 for ; Fri, 30 Jan 2015 05:16:32 -0800 (PST) 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:in-reply-to :references; bh=+CPnEVhIe+V9hB7FXOaxvk85gcclarwtPFd68DqTYl4=; b=d6xW0j6Y/THCvhrCBsjq7907nLj7/0j4PJH/RyMtYHVq1F4d0mFShzCuDdtcFHfoVM 85kTHLXwDa3ZYNEIbCyZFrPe7COFGkyerZ2QC5JfB9lSvbUlp4Ae1aCeu+5/WP7rfwAH OS3/LBe3qOMgYRU6uxoZUDnbeaX4E6g2TwVtj1EkhKYoNDW6v6zVk+aGru7q5I9hxVEP 1nCPTos7i2V1+QREWDRIo/TMvdg8/PJszWy0knc9k7cO8qRW8HY3jua2mmO1cMLrxdsM 6R9yoBt1c6nFDlqrtMKELvBbEyX26btdUVB69nbGOmZv//UYFFTOjXsN3gy/jXNxZXJv 1dJg== X-Gm-Message-State: ALoCoQk2EjOs9XLtNjqbDjKbgAElpf2K19CMNFbanUKig0AJwh0DXM9sCRkl65Fp/DZApf7zY2pl X-Received: by 10.194.185.68 with SMTP id fa4mr11401444wjc.111.1422623792389; Fri, 30 Jan 2015 05:16:32 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id li7sm6911300wic.4.2015.01.30.05.16.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 05:16:32 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 30 Jan 2015 14:15:56 +0100 Message-Id: <1422623775-8050-2-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 01/20] mbuf: remove PKT_TX_IPV4_CSUM 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: Fri, 30 Jan 2015 13:16:32 -0000 This alias is only used in one place of i40e driver. Remove it and only keep the legacy flag PKT_TX_IP_CSUM. Signed-off-by: Olivier Matz --- lib/librte_mbuf/rte_mbuf.h | 1 - lib/librte_pmd_i40e/i40e_rxtx.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 16059c6..a554247 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -142,7 +142,6 @@ extern "C" { #define PKT_TX_L4_MASK (3ULL << 52) /**< Mask for L4 cksum offload request. */ #define PKT_TX_IP_CKSUM (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */ -#define PKT_TX_IPV4_CSUM PKT_TX_IP_CKSUM /**< Alias of PKT_TX_IP_CKSUM. */ /** Packet is IPv4 without requiring IP checksum offload. */ #define PKT_TX_IPV4 (1ULL << 55) diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c index 2beae3c..8e9df96 100644 --- a/lib/librte_pmd_i40e/i40e_rxtx.c +++ b/lib/librte_pmd_i40e/i40e_rxtx.c @@ -501,7 +501,7 @@ i40e_txd_enable_checksum(uint64_t ol_flags, << I40E_TX_DESC_LENGTH_MACLEN_SHIFT; /* Enable L3 checksum offloads */ - if (ol_flags & PKT_TX_IPV4_CSUM) { + if (ol_flags & PKT_TX_IP_CKSUM) { *td_cmd |= I40E_TX_DESC_CMD_IIPT_IPV4_CSUM; *td_offset |= (l3_len >> 2) << I40E_TX_DESC_LENGTH_IPLEN_SHIFT; } else if (ol_flags & PKT_TX_IPV4) { -- 2.1.4