From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v11 5/7] mbuf: add a timestamp to the mbuf for latencystats Date: Thu, 9 Mar 2017 11:02:26 -0800 Message-ID: <20170309110226.2ce09891@xeon-e3> References: <1489076734-31474-1-git-send-email-remy.horton@intel.com> <1489076734-31474-6-git-send-email-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Harry van Haaren , Thomas Monjalon , Reshma Pattan To: Remy Horton Return-path: Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by dpdk.org (Postfix) with ESMTP id 6339C234 for ; Thu, 9 Mar 2017 20:02:30 +0100 (CET) Received: by mail-pg0-f44.google.com with SMTP id g2so12158434pge.3 for ; Thu, 09 Mar 2017 11:02:30 -0800 (PST) In-Reply-To: <1489076734-31474-6-git-send-email-remy.horton@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 9 Mar 2017 16:25:32 +0000 Remy Horton wrote: > 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; > > /** This creates a hole in the mbuf structure, and won't apply to current version of mbuf that has priv_size.