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 487DF459D8; Thu, 19 Sep 2024 23:48:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18BF74026A; Thu, 19 Sep 2024 23:48:54 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 59B0C400EF for ; Thu, 19 Sep 2024 23:48:53 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20696938f86so11968585ad.3 for ; Thu, 19 Sep 2024 14:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726782532; x=1727387332; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=nMEmwVqbJWGftjBdXjsEKF9cZGVUWQNr7LvRDSyIaN0=; b=V/pkCuiway+sQ3CHrsmIR3OBvJ9C3H2PVsSMkNfksFssV4LIaT+4CzyiQIFE8Zei3D FqNflcN7W3Qsxd3K1Dzh7YcmoTog8lJtUjzMTW++VpFkBIJIzUHZkUsPuOQiakboNycV w+Fx6nvZ2wXm94xBezJbessjBeO7JYea42EbxGDdk0azGH/iCLET0SYF5UffVC+OZRIK a+hc5F1awahUOtoLkdvHGD4wRCghNkcauP61e/1AW9+nXKLQb1CR2KA1xSTPgM5ZUWbB 1zimVaUcdnVrgSRq+7jk4xJOBo15GYz5XyyHmoyXqXltKCAr9QXV0lG5/XjmFu4vzOwu 0q5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726782532; x=1727387332; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nMEmwVqbJWGftjBdXjsEKF9cZGVUWQNr7LvRDSyIaN0=; b=W82piBCnP1F29mKjfw7YH3OL5wCXjAtcoZ0LnXCrtRi+HlYP1UgmqZpH21DriGIk2G KOMZ4tqLVUKj9P05HfDiAD4nVMePi2+lrooaBgne/ZCQiEl/d+cjeD6Z8O8irMDYzz2N WClguPIgB5903rxJalNisFqRwTkucsmkpyP+Hk2XlbASWD2nAepjx8L+9lptgSPthOSh RLEsfmGlNzdHV9igu8e8Ca4BwKPBAl5hFUki9r0Z/BtsWKTQUUgm0yEqrGm/7y/AyaUM N0zAOMQaXrQ2ywFx+n5DltU2tsG4hiwieWCxnyN7OC6FarZJCZCJoxWA7L8HJ9tpkf+1 2nmA== X-Gm-Message-State: AOJu0Yz6v4UslXwXiRKJQS7Z49wprXl9r4AYdU4zqS7ejX/TT8l87RFe aEO5oD7hMg0N5SLoYT4fNoi9kyuoAvwk19HwrvR7FZ+9f1pfNA6xCfrSG/7+aZ1reXke4hFPsqp T X-Google-Smtp-Source: AGHT+IGAKJQa5TbMxifXWdzzeE74azYYvA0WXB04POjwlA9JTLtmMAvLTTfuUwAgoU6k4ngPxVkDVw== X-Received: by 2002:a17:903:41c4:b0:202:4712:e838 with SMTP id d9443c01a7336-208d980ba51mr3020115ad.14.1726782532281; Thu, 19 Sep 2024 14:48:52 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-207946d1837sm84393475ad.173.2024.09.19.14.48.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 14:48:52 -0700 (PDT) Date: Thu, 19 Sep 2024 14:48:49 -0700 From: Stephen Hemminger To: dev@dpdk.org Subject: Getting useful Rx timestamps for packet capture Message-ID: <20240919144849.1f15e1d6@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Current DPDK support for timestamp is device dependent. This is bad/broken for things like packet capture which could be using the timestamp to get more accurate data into the capture file. Linux network timestamps are in timespec which is in nano seconds since 1/1/1970. Pcapng typically uses 64 bit nanoseconds since 1/1/1970. It would be best if the drivers all did the conversion to a standard format (ns since 1/1/1970). If the value read from the hardware is in other units, then it should be scaled in the PMD