Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1361223pxb; Fri, 21 Jan 2022 16:31:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpVI5QsDJG6h/exfkxjX4iquT5rNSU9R+e4qpOwugsMKVHiTaUSn5+kyjvUJ3p5eF5jZMT X-Received: by 2002:a63:6f07:: with SMTP id k7mr4527556pgc.574.1642811474521; Fri, 21 Jan 2022 16:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811474; cv=none; d=google.com; s=arc-20160816; b=BOzGxVlK89iTBOWhYcnyDGXciiuh8CFvhWcVy+gSkGec72KzilULLahCIX3ABdBZ3t 1RZxwXI6h4JZt0TZvOuRFybAiVAMFVkmDChLkLttAj8zwqQhs5ZjSJKfJrS63aH/Zs0u 5lPplbfWn4/Fb0+/5thsxtLcRSy2sWD2D+wIlCDMbrp7tyEA4hduh7p9kEw/N/9qd5sR Zi/M/FzxrYbwMYymwmS5J43xvp7nhaW/+xBIF3irbnNmQy9hWbOUveBnwmsAD9RDRQ5W J8/piBGA+zLdTU6Zwmt85JNHCKUXXrV9ktnRCpsj4v+uAoqL41sgSEMjGgmKos8ErwpY GCpw== 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=ZU/PEYNTT8vpKNnUJQm48p21UVkPUjERoKoMWQWxJ+w=; b=N5m7HqrL1rOEl4cNROvt2Tu8gc37XFR9TWmuEeLTTF4VLcTcv+GXAS7+UUcNuSOon7 80ZRcAaPpz+T9Gd3IfSO040eHK2UguimeSRhbl0piL9wlpvrf6xWcODZ4OmBXZcvXWqP rJqbRuruMWiMU3eIpUpjTZLIYQPOodQWunp11dVJOdzhZcke993p4Gm3msJeZP37wl3l ggmIeg4IuCy8A9dIkInAxUFOuZrlCKJ8089UGoMXY2EN2nXelNTe8TIJyTnBYjXpbXeb NgbIsht9NrEvThNfk52GG7DD25YzLMhmgCrz3VCkuUXKayeLHyL2TBbgLJvz1Jdp7Trz vJKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sWaRUf2b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si8491566pgr.712.2022.01.21.16.31.01; Fri, 21 Jan 2022 16:31:14 -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=@lunn.ch header.s=20171124 header.b=sWaRUf2b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233497AbiAUDiO (ORCPT + 99 others); Thu, 20 Jan 2022 22:38:14 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:46934 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbiAUDiN (ORCPT ); Thu, 20 Jan 2022 22:38:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ZU/PEYNTT8vpKNnUJQm48p21UVkPUjERoKoMWQWxJ+w=; b=sWaRUf2bSEEqGI/6plwuI5bslV TASohLEFLU8G5sFo51j41w3onjHOFJeDo+jI3yPMVjpLkE3BL3S0BgbOU7vmgI04sJGV4aJWINt+V 2hojqtjW8h2sI3gFIpQN3iRup+Dd7OhQq67fxWyxxaGWnsskeBBHat5zS0ugLfUQw8m4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nAkkb-0022ro-86; Fri, 21 Jan 2022 04:38:09 +0100 Date: Fri, 21 Jan 2022 04:38:09 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Richard Cochran , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Miller , Grygorii Strashko , Jakub Kicinski , Joakim Zhang , Kurt Kanzenbach , Miroslav Lichvar , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120164832.xdebp5vykib6h6dp@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This is also the reason why DSA denies PTP timestamping on the master > interface, although there isn't any physical reason to do that. For the > same reason mentioned earlier, it would be nice to see hwtstamps for a > packet as it traverses DSA master -> DSA switch port -> PHY attached to > DSA switch. Don't forget there could be back to back PHYs between the master and the DSA switch port. In theory they could also be doing time stamping. Also consider the case of a switch port connected to a PHY which does media conversion to SFP. And the SFP has a copper module, so contains another PHY. So you could have the MAC and both PHYs doing time stamping? So in the extreme case, you have 7 time stamps, 3 from MACs and 4 from PHYs! I doubt we want to support this, is there a valid use case for it? Andrew