From patchwork Fri Nov 14 17:03:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 1274 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C27737FA0; Fri, 14 Nov 2014 17:54:04 +0100 (CET) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 0E3017F6D for ; Fri, 14 Nov 2014 17:53:47 +0100 (CET) Received: by mail-wg0-f52.google.com with SMTP id b13so19749453wgh.25 for ; Fri, 14 Nov 2014 09:03:51 -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=CGfdm5SvrVyT0RRHqLbXog5kx0bg7EK2ZQdA7koWrYA=; b=b8SLRmTAjs+ChpJvSCN1xHDwaNIIjCYZyTCkwQHjz9kxo1UjhjUz+EtTreNzY2OSiJ CnMIRhZ/Y6l5rSz73XaBwYpkXx6QSliqfwy/rJBVICA0PcGB+07xmR/16MzrFMrjHm/u 7HYFCBWG34AJrWv1y5wxoef7axhGDRwFKdIJL4wzqYLhkQjddqt5CtjfqKxqbOAQGC4x 0PCqbp2aGvN6cduOnrsxWcNEa9VftPDhglS4f0O4PiROJn6LkZEg/Lpr9kTZiTj/WxId a0nxLCjGcVx/O4zF6v7yHXy2N+1jsLDJ67DnMDOBggKk9GYaob6YpI9EIGhioWVBrGsV uGUg== X-Gm-Message-State: ALoCoQk70vlW9MWfTqFhqMBV6S+MFy4ERa0R6ID6v62+FLP/s8Dx0hQpfNnY59YfQe7TZrc/xvIv X-Received: by 10.180.84.167 with SMTP id a7mr9293354wiz.39.1415984630995; Fri, 14 Nov 2014 09:03:50 -0800 (PST) Received: from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id cu9sm40352554wjb.0.2014.11.14.09.03.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Nov 2014 09:03:50 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 14 Nov 2014 18:03:19 +0100 Message-Id: <1415984609-2484-4-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1415984609-2484-1-git-send-email-olivier.matz@6wind.com> References: <1415635166-1364-1-git-send-email-olivier.matz@6wind.com> <1415984609-2484-1-git-send-email-olivier.matz@6wind.com> Cc: jigsaw@gmail.com Subject: [dpdk-dev] [PATCH v2 03/13] mbuf: move vxlan_cksum flag definition at the proper place 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The tx mbuf flags are ordered from the highest value to the the lowest. Move the PKT_TX_VXLAN_CKSUM at the right place. Signed-off-by: Olivier Matz Acked-by: Bruce Richardson --- lib/librte_mbuf/rte_mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index f5f8658..029c669 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -96,7 +96,6 @@ extern "C" { #define PKT_TX_VLAN_PKT (1ULL << 55) /**< TX packet is a 802.1q VLAN packet. */ #define PKT_TX_IP_CKSUM (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */ -#define PKT_TX_VXLAN_CKSUM (1ULL << 50) /**< TX checksum of VXLAN computed by NIC */ #define PKT_TX_IPV4_CSUM PKT_TX_IP_CKSUM /**< Alias of PKT_TX_IP_CKSUM. */ #define PKT_TX_IPV4 PKT_RX_IPV4_HDR /**< IPv4 with no IP checksum offload. */ #define PKT_TX_IPV6 PKT_RX_IPV6_HDR /**< IPv6 packet */ @@ -114,9 +113,10 @@ extern "C" { #define PKT_TX_UDP_CKSUM (3ULL << 52) /**< UDP cksum of TX pkt. computed by NIC. */ #define PKT_TX_L4_MASK (3ULL << 52) /**< Mask for L4 cksum offload request. */ -/* Bit 51 - IEEE1588*/ #define PKT_TX_IEEE1588_TMST (1ULL << 51) /**< TX IEEE1588 packet to timestamp. */ +#define PKT_TX_VXLAN_CKSUM (1ULL << 50) /**< TX checksum of VXLAN computed by NIC */ + /* Use final bit of flags to indicate a control mbuf */ #define CTRL_MBUF_FLAG (1ULL << 63) /**< Mbuf contains control data */