Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3504887pxb; Mon, 24 Jan 2022 10:58:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTWFoiBdtmVrLd1An03UcpZ7uNhI3V7QEPk3n2waHK9fdf+BQQEPEiucsWGAEo90LFv6WL X-Received: by 2002:a17:902:9046:b0:149:6fd4:4928 with SMTP id w6-20020a170902904600b001496fd44928mr15639134plz.135.1643050692047; Mon, 24 Jan 2022 10:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643050692; cv=none; d=google.com; s=arc-20160816; b=TBhdEqqtOZ25beWswAZxsuShUzLTRrnfvj1ve8U3KLLhmyy9hdEcjvMRu5nyYanxHd gp44XB3kQbdZm28JC2ezFQLxXtFdaZm/6kN3bVJE0kBGWHzj+vSGpm5nHXgE9dEU7a5U zUyzhSxltIKGfT32NmnzvxhkHcQYPxbthnwLg5XN0j0sCVlx9QRC/EP9d8VZW6ila/qm JhiqdRcV3Z1uyJIpctfWqxZJQ15A/AI9iSeKluALdXvZDBeXUxRr+BlpOJ/oqBkX4SwJ GOiMnXXmoB2SC8KMZMuXSwgmSSCMwR3vtmjkg8WOed7fUkCdOjuY9SvuOsWhlm4BVVQf ZrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PU7JbFuDwdFKk/VjKzygUczh9Zjw5LHX5d/gO46ICZ4=; b=AR4sSSp7C9M+mQcSaIJsAiR3Ggb4BUqA8XskI4aNclkwJTWgulpKTlmKxO3nrQbLYk pR2sRbfKDpD4zfpehbjEbOO1rGkwuN/R2xZQ2A6eqkO3ixTEW/Af/JTye59GTKU6N2AE Mxj8Eto/CeMbi4+AGGzjXnjKmyoRev9ifZ2zqD9dG0cSidWfLeOyefgtw4LrfyXRl+M5 Z8SoH0vzSnbvaFTXP8k668/SD1JZU7byAtP3YIhtKx8WO0Y29+k/hDZ7l8my41hVWac1 FyfJAs8zg+I5wIyVbT2NJuqALiB4p0smQyvKJ2knGXU5AW54hUCKDpWaYb0WWOFYPV98 lH4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IUEkFkL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si5138845plr.48.2022.01.24.10.57.59; Mon, 24 Jan 2022 10:58:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IUEkFkL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233732AbiAXJ2g (ORCPT + 99 others); Mon, 24 Jan 2022 04:28:36 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36982 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233202AbiAXJ2e (ORCPT ); Mon, 24 Jan 2022 04:28:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643016513; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PU7JbFuDwdFKk/VjKzygUczh9Zjw5LHX5d/gO46ICZ4=; b=IUEkFkL/yErZDKKqXP/gtz/Ayn6Y58BH0XSEsnqY7NPbZmxNZTWU7hjVNC46IWogPGS8RF 0jjBjcQp5LerJCGMSnNJdq52Znmo9jxxfpsdglPzaTJbkWbD+WrMRZ9Gtticj3OnwTrW2V tzhbv0OWYhuDFCCIts6Ozn7wGnC4EM4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-664-h86HWp00MZiTOBQxiU5KBw-1; Mon, 24 Jan 2022 04:28:29 -0500 X-MC-Unique: h86HWp00MZiTOBQxiU5KBw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6CE8B5108D; Mon, 24 Jan 2022 09:28:27 +0000 (UTC) Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C25C770D52; Mon, 24 Jan 2022 09:28:24 +0000 (UTC) Date: Mon, 24 Jan 2022 10:28:23 +0100 From: Miroslav Lichvar To: Richard Cochran Cc: Vladimir Oltean , Andrew Lunn , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Miller , Grygorii Strashko , Jakub Kicinski , Joakim Zhang , Kurt Kanzenbach , Russell King Subject: Re: [PATCH RFC V1 net-next 3/4] net: Let the active time stamping layer be selectable. Message-ID: References: <20220103232555.19791-4-richardcochran@gmail.com> <20220120164832.xdebp5vykib6h6dp@skbuf> <20220121040508.GA7588@hoboy.vegasvil.org> <20220121145035.z4yv2qsub5mr7ljs@skbuf> <20220121152820.GA15600@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220121152820.GA15600@hoboy.vegasvil.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 21, 2022 at 07:28:20AM -0800, Richard Cochran wrote: > On Fri, Jan 21, 2022 at 02:50:36PM +0000, Vladimir Oltean wrote: > > So as I mentioned earlier, the use case would be hardware performance > > testing and diagnosing. You may consider that as not that important, but > > this is basically what I had to do for several months, and even wrote > > a program for that, that collects packet timestamps at all possible points. > > This is not possible without making a brand new CMSG to accommodate > time stamps from all the various layers. FWIW, scm_timestamping has three fields and the middle one no longer seems to be used. If a new socket/timestamping option enabled all three (SW, MAC, PHY) timestamps in the cmsg, I think that would be a nice feature. There are applications that receive both SW and HW timestamps in order to fall back to SW when a HW timestamp glitched or is missing. This could be extended to three levels with MAC and PHY timestamps. > That is completely out of scope for this series. > > The only practical use case of this series is to switch from PHY back to MAC. From an admin point of view, it makes sense to me to have an option to disable PHY timestamps for the whole device if there are issues with it. For debugging and applications, it would be nice to have an option to get all of them at the same time. -- Miroslav Lichvar