Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp125552lqe; Tue, 9 Apr 2024 17:28:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXicru8qPdf0Niey+53EIeLXCb5h1Jie0cbinLdb3NcLx1uGr2XrfhABo6akbL7O5SW5K/syzNWuuM6MUrF/sPHdocJmg8SONk7rwWELg== X-Google-Smtp-Source: AGHT+IGfIS9+AbHrBnArWf5vwI1OijxTFtW04DFsdRpLY8ABHP5hRcNsc9fb40NaVPKl4ORAWzl8 X-Received: by 2002:a81:9484:0:b0:60a:2c16:da3f with SMTP id l126-20020a819484000000b0060a2c16da3fmr1312083ywg.28.1712708928906; Tue, 09 Apr 2024 17:28:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712708928; cv=pass; d=google.com; s=arc-20160816; b=g5iCzslTeLpJnXRadA7QBPHImFG/RAOjtuvcQA7Mdg6eid5XN7H/OZzrF3gE8oDHOB w7NGuqZ/Ei3d1sXE5APC70AcJaVBsmGeVPhN9hWZK55q/iFLNUDirxi1oId1fq6i+lui NdKl8im1LG0dVmBx1FQ7D7SyJXRvtGVIBTlEl3BcOPGRcGcaX7LkPNwZ0FwoKn20ss1A nxsaFkuIhGRctVBnaCQsK5/wTtfNHfnv/iD7jrYfro8F3HZb6dzyvVKWh2fofqQBPBYC /VnQfHN8+7hRKhC3AToGi/SjMdCMXJ62bV3VL/a/+9GYHBbARbKj0RtC7KyHe4wv5pwj TdMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=WHhJx2bxveqPcCn96/WbSmcpbordFp8XEa/OjW+X4Fw=; fh=iGBf5j/HNfLotDkAY24AbpdD5Uaf3jj/wbEYrT7LTak=; b=M/xQx7uLWQz42PmGMqQ6Kp4mqMsgUnRohk07nDuWIvCjxudZ7gbLeV5vSeBZCGNI6b G3Ms1HgpPawT9vmi5KhP8VrSLX84ja4u5SVd71+mqdQmtIcBk2Ye0wtjKGMPe1tmhOmj We+iJvv9nOZ9l4Pr6UJozjvy0fI9eMfRIafbM0DBzITNGOaoYgAYIMRtl53FCseMHrKi i2UDmRpk/QPSyu2Ls5DCCwQBnBH/afnvQR3q/9RSdS7QTR2UiZxUXh0RTQ1w2qJVKURL UzxsKSpaG50KeRc/ZJRs2lUuc7kPAEGssEcMhZhRQo/rHkuoI3XBlgT5JLd39alvWLg0 NCeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ISrXgCPK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k12-20020a05622a03cc00b004312a27b7f3si11918630qtx.89.2024.04.09.17.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 17:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ISrXgCPK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9E1471C20FF8 for ; Wed, 10 Apr 2024 00:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C1EAA32; Wed, 10 Apr 2024 00:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ISrXgCPK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AEBF37C; Wed, 10 Apr 2024 00:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712708920; cv=none; b=rg+ABBFyzFrn1XzjZsFQ7oza6xR+10n4VYfUhZtx+5xbb8x2A6EV6jlxlF+/+mjQXjbhIFwzC8V1cBtMIQ9iMZmmCPtu/zmjbttcPHSG6Lyf5E5ITBlJnakh8fMFutrUWGlrrD6Jdah98LmPFT+0TxqsB1ZBdzBoEc6z9j5YLx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712708920; c=relaxed/simple; bh=VSxgUq61kUsWcaZWrEgm3dkEBvUqhH37KU47deGe+AU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kzA/cku44c5QznBCbSPqtghZR7CVrLSllHusvCj12NGoEGWJaku4im5IROFGW8vmg94mPq6SczBipHmq0AFn/Yv4W7jMYiP4+i75DnodnU6Tgw87BNsc7tVZTRiV2vqSwLOyIKwoIZx8F9fxwTCBCe7776q0b5hGWPxFpBkGzAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ISrXgCPK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6735C433F1; Wed, 10 Apr 2024 00:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712708920; bh=VSxgUq61kUsWcaZWrEgm3dkEBvUqhH37KU47deGe+AU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ISrXgCPKLpqKRgiS//7EoTZzE9qjUj8g7mz3ovtn182yhRaNMrNxz9Q6wu+d9rY/9 pnTvcXPnMSeYW+SopTgfHOxUP1ZxtwZshdr+ue6cDN69ZMlU6jD/RchFgZR0ttEria l67+ArarCX8Oa1YC7tvUrG26BK9cTYo3EAoL/4/5E9MnrZ6RVNLU1ABFFnWNacojsN l28iSlBxesUsbs2nLiZ1GdkA5TsbvOH1n8wTwYUwotkexUq0U5nLq4Q6/B1JEVlePB yFz2+nluQpceH3+Q8t2oEa/UsvyHS/xthh4wNhQsLF0vEVBO+VmcA7nF+S2ShUJi8A BQQBkzvgIJr4w== Date: Tue, 9 Apr 2024 17:28:38 -0700 From: Jakub Kicinski To: Willem de Bruijn Cc: John Fraker , netdev@vger.kernel.org, Praveen Kaligineedi , Harshitha Ramamurthy , Shailend Chand , Willem de Bruijn , "David S. Miller" , Junfeng Guo , Ziwei Xiao , Jeroen de Borst , linux-kernel@vger.kernel.org, kory.maincent@bootlin.com, andrew@lunn.ch, richardcochran@gmail.com Subject: Re: [PATCH net-next] gve: Correctly report software timestamping capabilities Message-ID: <20240409172838.247738f3@kernel.org> In-Reply-To: <661550e348224_23a2b2294f7@willemb.c.googlers.com.notmuch> References: <20240408180918.2773238-1-jfraker@google.com> <661550e348224_23a2b2294f7@willemb.c.googlers.com.notmuch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 09 Apr 2024 10:29:55 -0400 Willem de Bruijn wrote: > This device calls skb_tx_timestamp in its ndo_start_xmit: the > prerequisite for SOF_TIMESTAMPING_TX_SOFTWARE. > > All devices support SOF_TIMESTAMPING_RX_SOFTWARE by virtue of > net_timestamp_check being called in the device independent code. > > To ethtool timestamping maintainers: It's quite unnecessary to have > each device advertise SOF_TIMESTAMPING_RX_SOFTWARE | > SOF_TIMESTAMPING_SOFTWARE. In __ethtool_get_ts_info we could just > always add those flags to the result from the callees. > > if (phy_has_tsinfo(phydev)) > return phy_ts_info(phydev, info); > if (ops->get_ts_info) > return ops->get_ts_info(dev, info); > > info->so_timestamping = SOF_TIMESTAMPING_RX_SOFTWARE | > SOF_TIMESTAMPING_SOFTWARE; My gut tells me we force drivers to set the ethtool op because while at it they will probably also implement tx stamping. Even more unhelpful point I'll risk making is that we could add a test and make people who submit new drivers run it :)