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 2B44245940 for ; Mon, 9 Sep 2024 01:07:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B48E402A8; Mon, 9 Sep 2024 01:07:23 +0200 (CEST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by mails.dpdk.org (Postfix) with ESMTP id 3EF254026A for ; Mon, 9 Sep 2024 01:07:22 +0200 (CEST) Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2f75c6ed397so13941091fa.2 for ; Sun, 08 Sep 2024 16:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725836841; x=1726441641; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=x6SxTE72hw8/j240WeOJyYP0IWzj9mOdEGIJaHoaBGQ=; b=XsTVj1oWwusE9ETLniB+nkkfQfV16ZX7Sy8c3TqqqkK9lFC4X1jD6NK8ditfi8dVus Z+gIZGZDLKprd+rGYzddlvMX22Pv9eTuL5scIJf3bFwjqewPyOsMrc4r/cmv21PgDseQ 0uVEa52kMqsn9cXZqIGK3YMjzdQtcPcw+70mLfNqspD7MXFAR9VEUIOJry2Vbj3HdEE7 iS9sEEQj/kWVmfsnzF7NR2ds25cqux77vS8GhFKhr501W3IhmVvSN9trZX2SE6LRfxZH 0ulkmnpc7tjbO/VcCegxQBBZTVbk5BJ3OIiDUzKsvTHD9CpAoBMbLFAZ0VrPeuGHE7cX +w1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725836841; x=1726441641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x6SxTE72hw8/j240WeOJyYP0IWzj9mOdEGIJaHoaBGQ=; b=PQo7yr4q60b5Mn14PtzHK9Cm2MntSTwr05mIUbpMhhrq16p4V3/DY8Jtt49dKuh707 lsTGWfr6rZHigAMQQonlBNRt/MHGK4Fsin0a6IEB4yRc4pW2NJXLKVDJycrzDc94/uTY 8+N6BP09mnEFre8Qc596rrbI0+CzvJnM55insLftcq5fAP90ltFFX/NB4uY210mP+oe+ XBTnTxS9PBTwrRnpcsVv7Un8+doZKO1dsyr24Q5zlc9yuasVW6WvoX4YU7ga8XBMGy3I ODTidCM26xOOLR+DgYrFXOgihg5G2yoNczcBt97JGTWJoIbnOnU21F3uxu2c7lVHPmLQ dJAA== X-Gm-Message-State: AOJu0YxTGnbPMKS0Gec00rr/bCCx4kzIpjGqICYgoTPJS026ZFrxkjze DJ5srDDVp0mBGQnm0CSQwAb7enmmE5phX6J1EwXBdmoHdDkNTXjm X-Google-Smtp-Source: AGHT+IEIUgyuWQkIWIcrf/myq1ANcKKJ0asGMR7HEaEHx5duvnQi4XUxoSUmm8Ns1chyuSUjg6iD3w== X-Received: by 2002:a2e:b8c7:0:b0:2f5:c13:bd11 with SMTP id 38308e7fff4ca-2f751ee3bfcmr72171151fa.17.1725836840988; Sun, 08 Sep 2024 16:07:20 -0700 (PDT) Received: from sovereign (broadband-109-173-43-194.ip.moscow.rt.ru. [109.173.43.194]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c098ae8sm6155391fa.102.2024.09.08.16.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 16:07:20 -0700 (PDT) Date: Mon, 9 Sep 2024 02:07:19 +0300 From: Dmitry Kozlyuk To: Dpdk Newbie Cc: users@dpdk.org Subject: Re: Does DPDK provide RX timestamps? Message-ID: <20240909020719.4d23c1dd@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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).