From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9BC5345945; Mon, 9 Sep 2024 10:24:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E911740B97; Mon, 9 Sep 2024 10:24:01 +0200 (CEST) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mails.dpdk.org (Postfix) with ESMTP id 7018340B95 for ; Mon, 9 Sep 2024 10:24:00 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4X2KcD2G6Hz1xvns; Mon, 9 Sep 2024 16:23:56 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id F256E140134; Mon, 9 Sep 2024 16:23:57 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 9 Sep 2024 16:23:57 +0800 Subject: Re: Does DPDK provide RX timestamps? To: Stephen Hemminger , Dpdk Newbie CC: References: <20240908171355.264071b2@hermes.local> From: fengchengwen Message-ID: Date: Mon, 9 Sep 2024 16:23:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20240908171355.264071b2@hermes.local> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500024.china.huawei.com (7.185.36.10) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2024/9/9 8:13, Stephen Hemminger wrote: > On Sun, 8 Sep 2024 23:31:36 +0100 > Dpdk Newbie wrote: > >> Hi. I am using Intel (i210) and AWS ENA network interface cards. >> >> I would like to measure the following RX latencies: >> >> 1) NIC to DPDK packet ring buffer >> 2) DPDK packet ring buffer to application via rte_eth_rx_burst. Some packet generator support delay measurement, could construct two tests: 1. run with enabled hairpin some NIC support hairpin (the data write to memory and resend by hardware again) if the NIC don't support hairpin, could use mac outer loop. 2. run with normal mode According compare the two delay. >> >> I don't mind measuring in nanoseconds or CPU cycles. >> >> Unfortunately I cannot find any mention of hardware timestamps. >> >> I found brief references to mbuf containing a timestamp in the dynamic >> fields, but nothing definitive. >> >> Could someone please clarify what the situation is? >> >> Thanks, > > Depends on the hardware, and the dynamic field for rx timestamp As I know, this Rx timestamp dynamic field is mainly used by PTP(IEEE1588). > also varies in its clock value. Some are ticks, some are us, some are ns; > and the base is arbitrary so difficult to use for packet capture. Yes > . >