From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 9C58A532D for ; Thu, 9 Mar 2017 17:25:44 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 09 Mar 2017 08:25:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,136,1486454400"; d="scan'208";a="74743473" Received: from cchotard-mobl2.ger.corp.intel.com (HELO FC23.ger.corp.intel.com) ([10.252.10.254]) by fmsmga006.fm.intel.com with ESMTP; 09 Mar 2017 08:25:42 -0800 From: Remy Horton To: dev@dpdk.org Cc: Harry van Haaren , Thomas Monjalon , Reshma Pattan Date: Thu, 9 Mar 2017 16:25:32 +0000 Message-Id: <1489076734-31474-6-git-send-email-remy.horton@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1489076734-31474-1-git-send-email-remy.horton@intel.com> References: <1489076734-31474-1-git-send-email-remy.horton@intel.com> Subject: [dpdk-dev] [PATCH v11 5/7] mbuf: add a timestamp to the mbuf for latencystats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2017 16:25:45 -0000 From: Harry van Haaren This commit adds a uint64_t to the mbuf struct, allowing collection of latency and jitter statistics by measuring packet I/O timestamps. This change is required by the latencystats library. Signed-off-by: Reshma Pattan Signed-off-by: Harry van Haaren --- lib/librte_mbuf/rte_mbuf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index ce57d47..e0dad6e 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -514,6 +514,9 @@ struct rte_mbuf { /** Timesync flags for use with IEEE1588. */ uint16_t timesync; + + /** Timestamp for measuring latency. */ + uint64_t timestamp; } __rte_cache_aligned; /** -- 2.5.5