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 91F5C45940 for ; Mon, 9 Sep 2024 01:21:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1168F4067C; Mon, 9 Sep 2024 01:21:26 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id E6B35402A8 for ; Mon, 9 Sep 2024 01:21:24 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2d873dc644dso2731652a91.3 for ; Sun, 08 Sep 2024 16:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725837684; x=1726442484; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X4dU/5IjSZpDobpNEjf+8iYNd5utwEfJOR789bOCNbc=; b=HOCm+VekN5b7cI6CuRKD+6eY3QP03DPHlsFXsmM4SHpxSFKHbGbAGWbSdoxBRwXY9E 5rRE/AzPgXir7Z4fTPtERgF4A/TezwKPekonRQm6xAJcpoE1oI7J/RrkIskdMK2NRF5C poJ+Us3jAhyKeBuOMl7nki/U8H4KDpEDaA9ej4wqfD9U9eliP5dt+0KvC2dBv1aUlyh3 lsPFXcacGc+Jy6MKEVcqlmTNjgsItgWICktZXmjlvMegjHediedb5/82A2R04CQwRc8p XCz4ayFn8z2yTPDWK+ZzsTtGyFtuYbIVW+1xdYAbf62EeNIFVJRn680EsoYTAkBWE9wB TAUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725837684; x=1726442484; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X4dU/5IjSZpDobpNEjf+8iYNd5utwEfJOR789bOCNbc=; b=er5aE4tCBPI8UCZipEnFhkajPBJBKfSEf0BbXUMOsIOkPkCYsr7SdnE1nOXWVIceHg XFsB3sBkTkILssVuSxwF/9S78/9SFndhA4k7lafxFKrjriyyMA1+FMLxzVrPEMbgHcdz SmCqMKakQvWa/U6XWE+ZM99xpeTMey3M56lbLy+c57qCq3IiRfZoNk9fZMA9nvKr1L32 aQ2bvr2gH+GIZRdqoHDrVov0rp8nv6O4OAGsuCC524Nc63LoDW/8+qV1t/W8jzq5f5Ih 3w0MYAVSVu9vDCQTB0+/5fGIy9xPFIei8Rfsn1kZ2BdM8wgFlDUsD8OsOhqyPa9dF8FZ DLLw== X-Gm-Message-State: AOJu0YwHuIfEYee/E5GitVH2xFGx7XcLTAXCF6CWPPf3lFBbazBATbED YmBpOnrj7w61P4cSHSNHt84KmPP+Ma+JLTy+QKA7TRztcmbbG5pcS5iES2fOKLcHSfZXZ38uUeD +il8Kfdko+Qhmn4dDvblGtfBniLE= X-Google-Smtp-Source: AGHT+IF+5iUgdCXyBQGiP7vUj0PPDJrMVh426uC8lWwRJZXGYJ985W4ZlRLNPgiJ3zlCUkXxCMeYMkiZWXkttDr8fH8= X-Received: by 2002:a17:90a:7c04:b0:2d8:9255:396d with SMTP id 98e67ed59e1d1-2dafcd5c767mr6802935a91.0.1725837683809; Sun, 08 Sep 2024 16:21:23 -0700 (PDT) MIME-Version: 1.0 References: <20240909020719.4d23c1dd@sovereign> In-Reply-To: <20240909020719.4d23c1dd@sovereign> From: Dpdk Newbie Date: Mon, 9 Sep 2024 00:21:12 +0100 Message-ID: Subject: Re: Does DPDK provide RX timestamps? To: Dmitry Kozlyuk Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Thank you for the clarification regarding hardware/NIC timestamp on i210 and ENA. Does DPDK take a timestamp to facilitate my second measurement, from the packet ring buffer to my application? On Mon, 9 Sept 2024 at 00:07, Dmitry Kozlyuk wrote: > > 2024-09-08 23:34 (UTC+0100), Dpdk Newbie: > > 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. > > > > 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, > > DPDK only provides API to access Rx timestamp if it's available. > Example: https://elixir.bootlin.com/dpdk/v24.07/source/app/test-pmd/util.c#L37 > > Rx timestamp availability depends on the PMD and HW. > Support matrix: https://doc.dpdk.org/guides/nics/overview.html > It seems to be no support for i210 (igb?) or AWS ENA (ena). > >