From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 197A23DC for ; Wed, 8 May 2019 09:54:31 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 2D19EB40060; Wed, 8 May 2019 07:54:29 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 8 May 2019 08:54:21 +0100 To: Tom Barbette , CC: , , Thomas Monjalon , Ferruh Yigit , Shahaf Shuler , Yongseok Koh , References: <20190502121135.18775-1-barbette@kth.se> <20190502121135.18775-2-barbette@kth.se> From: Andrew Rybchenko Message-ID: Date: Wed, 8 May 2019 10:54:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190502121135.18775-2-barbette@kth.se> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24598.003 X-TM-AS-Result: No-0.161900-8.000000-10 X-TMASE-MatchedRID: pBwXUM+nCwsOwH4pD14DsPHkpkyUphL9MZm0+sEE9mt+YesuCgkiXArU aOXZFU93BgWbJzfqzYkbV9ggpUwfLg8LKInWUps8R/j040fRFpLBe485VyXrSS0DjoIpojymo8W MkQWv6iUD0yuKrQIMCCAtDqHg/4Qm0C1sQRfQzEHEQdG7H66TyJ8TMnmE+d0ZFMQ40OInBTpoiz QSBa930o0Ap0ZKuuv0xx5NywZgPxijyylHoRbl3f3N2JdyvypYcpvzUiuJOt8ZWrHo1jc0cENNl Fl+0N6Y1DXsKeBNv04EqZlWBkJWd7MZNZFdSWvHG2wlTHLNY1LDyDYcE1wXmQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.161900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24598.003 X-MDID: 1557302070-WEjcA1CSb2fX Subject: Re: [dpdk-dev] [PATCH v4 1/3] rte_ethdev: Add API function to read dev clock 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: Wed, 08 May 2019 07:54:31 -0000 On 5/2/19 3:11 PM, Tom Barbette wrote: > Add rte_eth_read_clock to read the raw clock of a device. > > The main use is to get the device clock conversion co-efficients to be > able to translate the raw clock of the timestamp field of the pkt mbuf > to a local synced time value. > > This function was missing to allow users to convert the Rx timestamp field > to real time without the complexity of the rte_timesync* facility. One can > derivate the clock frequency by calling twice read_clock and then keep a > common time base. > > Signed-off-by: Tom Barbette Acked-by: Andrew Rybchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2CF04A0096 for ; Wed, 8 May 2019 09:54:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB6723977; Wed, 8 May 2019 09:54:31 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 197A23DC for ; Wed, 8 May 2019 09:54:31 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 2D19EB40060; Wed, 8 May 2019 07:54:29 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 8 May 2019 08:54:21 +0100 To: Tom Barbette , CC: , , Thomas Monjalon , Ferruh Yigit , Shahaf Shuler , Yongseok Koh , References: <20190502121135.18775-1-barbette@kth.se> <20190502121135.18775-2-barbette@kth.se> From: Andrew Rybchenko Message-ID: Date: Wed, 8 May 2019 10:54:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190502121135.18775-2-barbette@kth.se> Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: 7bit Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24598.003 X-TM-AS-Result: No-0.161900-8.000000-10 X-TMASE-MatchedRID: pBwXUM+nCwsOwH4pD14DsPHkpkyUphL9MZm0+sEE9mt+YesuCgkiXArU aOXZFU93BgWbJzfqzYkbV9ggpUwfLg8LKInWUps8R/j040fRFpLBe485VyXrSS0DjoIpojymo8W MkQWv6iUD0yuKrQIMCCAtDqHg/4Qm0C1sQRfQzEHEQdG7H66TyJ8TMnmE+d0ZFMQ40OInBTpoiz QSBa930o0Ap0ZKuuv0xx5NywZgPxijyylHoRbl3f3N2JdyvypYcpvzUiuJOt8ZWrHo1jc0cENNl Fl+0N6Y1DXsKeBNv04EqZlWBkJWd7MZNZFdSWvHG2wlTHLNY1LDyDYcE1wXmQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.161900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24598.003 X-MDID: 1557302070-WEjcA1CSb2fX Subject: Re: [dpdk-dev] [PATCH v4 1/3] rte_ethdev: Add API function to read dev clock 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190508075417.Ak-2S0oitPNJ6pCnrKPqoBxuTJEohyyVafEAkrg6LcM@z> On 5/2/19 3:11 PM, Tom Barbette wrote: > Add rte_eth_read_clock to read the raw clock of a device. > > The main use is to get the device clock conversion co-efficients to be > able to translate the raw clock of the timestamp field of the pkt mbuf > to a local synced time value. > > This function was missing to allow users to convert the Rx timestamp field > to real time without the complexity of the rte_timesync* facility. One can > derivate the clock frequency by calling twice read_clock and then keep a > common time base. > > Signed-off-by: Tom Barbette Acked-by: Andrew Rybchenko