From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 87F2F5957 for ; Sat, 10 Oct 2015 06:52:39 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 09 Oct 2015 21:52:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,661,1437462000"; d="scan'208";a="823644732" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 09 Oct 2015 21:52:38 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 9 Oct 2015 21:52:38 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.253]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.194]) with mapi id 14.03.0248.002; Sat, 10 Oct 2015 12:52:30 +0800 From: "Lu, Wenzhuo" To: "Montorsi, Francesco" , "dev@dpdk.org" Thread-Topic: Accurate timestamps in received packets Thread-Index: AdECoeRGBbnp2n4lTluzoJeGQ8/KtgAdUWgg Date: Sat, 10 Oct 2015 04:52:30 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09090209D3D5@shsmsx102.ccr.corp.intel.com> References: <825e846fd8934cc0b34293a8a1542bd2@bilemail1.empirix.com> In-Reply-To: <825e846fd8934cc0b34293a8a1542bd2@bilemail1.empirix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Accurate timestamps in received packets 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: Sat, 10 Oct 2015 04:52:40 -0000 Hi Francesco, Why not searching ieee1588 in the dpdk git repository? Surely you'll find = something. > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Montorsi, Francesco > Sent: Friday, October 9, 2015 11:30 PM > To: dev@dpdk.org > Subject: [dpdk-dev] Accurate timestamps in received packets >=20 > Hi all, > I'm using rte_eth_rx_burst() to successfully retrieve packets from a DPDK= - > enabled port. I can process the packet and everything works fine. My only= issue > is that I cannot find any mean to retrieve a timestamp for every single p= acket. As > a dirty-workaround I'm using gettimeofday() to timestamp incoming packets= but > I would rather like to retrieve a more accurate and realistic timestamp f= rom the > Ethernet PHY layer instead. For example if I receive 32 packets in a sing= le burst > I'm just assigning the packets timestamp with 1ns of difference (using > gettimeofday() for the initial time offset). >=20 > Is there a way to retrieve a realistic timestamp from the Ethernet PHY la= yer? >=20 > I found this patch searching on the web: >=20 > http://www.wand.net.nz/trac/libtrace/browser/Intel%20DPDK%20Patches/hard > ware_timestamp.patch > that is however related to an older DPDK version and works only for INTEL > 82580 controllers... do you know if that simple patch linked above could = be > similarly ported to Intel 82599 and 82571 controllers? Is there any bette= r/easier > way to do that? >=20 > Thanks a lot, >=20 > Francesco Montorsi >=20 >=20