From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CRds+vpB0gwNnUZBcUyO+cc9FZY8y/1ZDTohe4xVjlA=; b=kBQGWmWHeK9y94k4yRvPn9bNq/GgfK0B2RAs0beYgHfCspqBJdn5BsAM3rXbWvDPwO dyTY16jf43QZ/2JzxyhW2XHmwHoYxG5q8Hqdn0DLfDaGJqRNtt2rY1T5tmr/s6bANnGW 6yDfhRdGEQyccRStZL5bOq1JJ8W5JO+v6dBn3f45q2Ulx7WbWqh8VprsBDEBczoBRlGA GmtrLhxM+K44xc145ClOKwisWqLbODxvIHfj+68z7t2h/UKNxHLCMTqh+tKRqXlZcp1Z oK55Z3RibxfKvPyuSr1bEPVr3LOEKPGPX7+uRP9H37VuIXWL5IMXXs4U9+BbLhK6H6zA TpTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CRds+vpB0gwNnUZBcUyO+cc9FZY8y/1ZDTohe4xVjlA=; b=Ho93yBaNkqOGDgzUhHPIgxd00Tw4tdMLI1SViC3nHg1ix+Ru/ry0AR4EJRuSyCjhOu p+JK2quyTSybR0IhRmWTXOJc6WWcjnP3yVVKOqyGjQvF8F/LTuuH/CjhEINS0qeVYIcs Nok6drSxDtLXuP7zvZaPQq/AVVhehfdUqs2t7TrXdVRctsie1b88fZVq2pFKKJsVhIP9 S4my5kJX3rhEGuavowGdKOKXGQHyEu9P1T+TzFi/SLcHtVkFHjt68sFsp/dXO05pwwSX 7WEXSEgEMmhp3vpxE+3Frl7l8Zf6Th97/XQgvOlBPlaa2kTiOiay1/1tFg7/zQuQZPGT GvZg== X-Gm-Message-State: AMke39kq4cdX1OYcX4KY9hDIHrL1tjk+CNSUrTWeXQJGiBBleOOInitnekTOZ+CGKc3kfQ== X-Received: by 10.99.96.9 with SMTP id u9mr14999410pgb.159.1489086149608; Thu, 09 Mar 2017 11:02:29 -0800 (PST) Received: from xeon-e3 (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id o26sm14053310pgd.25.2017.03.09.11.02.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2017 11:02:29 -0800 (PST) Date: Thu, 9 Mar 2017 11:02:26 -0800 From: Stephen Hemminger To: Remy Horton Cc: dev@dpdk.org, Harry van Haaren , Thomas Monjalon , Reshma Pattan Message-ID: <20170309110226.2ce09891@xeon-e3> In-Reply-To: <1489076734-31474-6-git-send-email-remy.horton@intel.com> 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 Subject: Re: [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 19:02:30 -0000 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.