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 DC395459D7; Fri, 20 Sep 2024 16:29:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2582D4067E; Fri, 20 Sep 2024 16:29:51 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 5040940669 for ; Fri, 20 Sep 2024 16:29:49 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-205909afad3so26245995ad.2 for ; Fri, 20 Sep 2024 07:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726842588; x=1727447388; 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=jkDbZXMrSRzJF/5JvGcGEaGt7y/7YUy/UuxMrAtgm/o=; b=2fjdneB9qt5iqBgVAgejD0Tq7qHEalrkzGdG0W4hewqn0rOpRVZz0zqgTfC9//6OUR jJnxWzZT+LngMk7Zx+ttmwfqd9oc2b01AsoP+qBKWLBOZJCkRw3TG28gmgWfIwuzMSqr 6telCIruJUrSryntHe9h5xZA4AnMoMtT/xYb/vC661GVej+oPFQDrTRHo7zMbVh5JXpL zTlmNTs36z94hrB4dBscIybj0tQG7AVWEtoWekZIbp0Or2EsWrndD0aR9NIHVLu19zpP mmGq5bGRHkDpem74otpIKqWP14QLw5S0gFOOjcQbMR3Y8ziRnaF/tqnRWjGiLE3L1Y15 5EXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726842588; x=1727447388; 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=jkDbZXMrSRzJF/5JvGcGEaGt7y/7YUy/UuxMrAtgm/o=; b=o05n6z4je7GYQL8FBfwLhKWee6yHJJmXXbYNuZJci8KklLNd/VOkCysGztwklXhn5G GTS/3LUwSO4XlZAHdkdu4b61rRlKs1Rmu92GsmmgDja4X8XJQTQHIfMonAuImHyJVHKZ amliM3aDezCtmgn3wKTbaBNRiThNKloKyXWshvcbBofXEhXnndj4TE6ynOidpFtHGBUN OPLex9ATMs9D0SWK9XaMW1jpIgQhON0y69krN6jkhgYZttgoKsfFfxXUwasKAAG0FYU5 76ns0xZMEviKQwShuSSFqb6af8H+WZPnyY9mlQ6BsbyMx63eU3gl65simg+Leq2apN6i k/tw== X-Gm-Message-State: AOJu0Yy1/cZ8XuP3G1JPZGiSbUzv9gnOt1eRKJrAeySTTLz+8LQZ+ssr 42ySmUq9NRC79NbggkjbuK1LGO3NhoBQfwTspvBZEZYEwLmwU6uP7y+i037GCqHXxd602TKTAK1 9 X-Google-Smtp-Source: AGHT+IElrelgJ46rWa5jzD9v7aT+jD4agp3AYn1uZ+ldZR2egyQf3ovmUnUV2mY+2eZArsdKQykfCg== X-Received: by 2002:a17:902:cf05:b0:208:d857:1014 with SMTP id d9443c01a7336-208d8573fb1mr40458635ad.28.1726842588232; Fri, 20 Sep 2024 07:29:48 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-207946d64f5sm96022385ad.132.2024.09.20.07.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 07:29:48 -0700 (PDT) Date: Fri, 20 Sep 2024 07:29:46 -0700 From: Stephen Hemminger To: Stefan Laesser Cc: , Morten =?UTF-8?B?QnLDuHJ1cA==?= Subject: Re: [PATCH v3] net/af_packet: add timestamp offloading support Message-ID: <20240920072946.60da2724@hermes.local> In-Reply-To: <20240920071411.477421-1-stefan.laesser@omicronenergy.com> References: <20240920064408.64651-1-stefan.laesser@omicronenergy.com> <20240920071411.477421-1-stefan.laesser@omicronenergy.com> 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 On Fri, 20 Sep 2024 09:14:11 +0200 Stefan Laesser wrote: > + *RTE_MBUF_DYNFIELD(mbuf, timestamp_dynfield_offset, > + rte_mbuf_timestamp_t *) = > + (uint64_t)ppd->tp_sec * 1000000000 + ppd->tp_nsec; Maybe the should be rte_timespec_to_timestamp() inline in rte_mbuf?