Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1460113rdb; Sat, 18 Nov 2023 18:35:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZJxtBWYBpsVFRJVXsJ3Y4iW67hkUj8MFXCKZXjSMj+qoAWbebf42QUoZm6Wx0dCSvhucD X-Received: by 2002:a17:902:dad1:b0:1cf:56e1:ba98 with SMTP id q17-20020a170902dad100b001cf56e1ba98mr2096885plx.18.1700361325963; Sat, 18 Nov 2023 18:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700361325; cv=none; d=google.com; s=arc-20160816; b=cF+4gxnc5g1iSnojIxvjVYuTaT5WWB1rneQXVZMbjrgKsxd7jDbant/slOED/xGYeA 48rmIvVnCSBUGeDL3Ys2lXEeoN8mCmrMXKCViCPJRjKFBuQnsRucEFegkYvxPHy16uX3 1zTcSm55pRN/vlxtjeXDwly+W2fwNdmzYtY14AffsgaeOYIDnIW6qnydDqLCPGkDOFkn lsNQ9IotF19MGOkT0ibAhjoj5uKSc9czACceZbwyHmr6pDs5YF5hSWX6rJ7zbqNcSAGN lwGEtGfd0DmzlJ7XCP9pjdNmq1y9KxCCkyiLvJvkZ56IZzEvvKKZr9ZaT32OwgE2oN22 cGcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cZPaNP5EGjdO4ZZsjBzgh0KUiwTTzGWLTR6ZjsT8TeI=; fh=aj1dOU7T9MGjs2Hp4wovnnos2bO9Q09QJBumZTeturw=; b=G2qOQ8DIcNd0y/QgEmKwttZZFqOyv/RwzACKX2ajEPK2GqOdOc6uWZMJBvlHSVnrIF 3d5u214+fnM9ejXYBBSfhD3PdrU2U6ZhFbotdnIR+040bPoE2t6kZcBruuwXOgfnSkZM 5L0XGE2C+V2g7qd3FQ4wR1p9rcO4NwcTx+/S8/MIUQWUHB+a4uk//aBNSb5rgrKtC6Kf 3r/lCxE9RLo8yADkCetXv7Fo2IzaZV45Z51+udW1IljrW3YpRa4XZmN32fDLteiOwEC2 2LF0aW6mXbnSw/iXUw+r8Cwo19EQz7vkPQIAwJ4ZubIGnL0wG5vxPyOED1JhZaXYLN2c BAng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bEg8ibbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001cdf9395a2asi5369128plf.420.2023.11.18.18.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bEg8ibbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D287C804E729; Sat, 18 Nov 2023 18:35:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbjKSCej (ORCPT + 99 others); Sat, 18 Nov 2023 21:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSCej (ORCPT ); Sat, 18 Nov 2023 21:34:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E538DD5 for ; Sat, 18 Nov 2023 18:34:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A473C433C7; Sun, 19 Nov 2023 02:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700361275; bh=FAVgax6ky7lNhr5MHl33fP4AwGQUXVpEfHK1wlpTUv8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bEg8ibbjBFn2NnXoJ9zd8AE9hC41myx+Lc5TVW79GVE8GWEoDk+Mkh2tKgqBV/9of DxFA87szlMVAGuvc5SuDhmmPiHlpHJUI8z/Hhak2LCzJYdTWf7ViLEJv2ffiszJEN+ tOqWDPWXqLVDYAd8i11Ui0fGthRbr5VUVSHCNzyxgmx+cbpmlJKhEQQ8SnAUP+PWGt da1O3tVnKH5Uh7H+bDhYhkNHRkUXu0WC4zrjg790wt1Wf7nnllmOWXXiwLfiu/j0Mu +KanU8++AcTWORufVzxrbj9gy2jH3MuxTi2D6cHGJSNrdAXMPiu56NDRC994JRI8mC bkvbjqP+SSuDw== Date: Sat, 18 Nov 2023 18:34:33 -0800 From: Jakub Kicinski To: Kory Maincent Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier Subject: Re: [PATCH net-next v7 15/16] net: ethtool: ts: Let the active time stamping layer be selectable Message-ID: <20231118183433.30ca1d1a@kernel.org> In-Reply-To: <20231114-feature_ptp_netnext-v7-15-472e77951e40@bootlin.com> References: <20231114-feature_ptp_netnext-v7-0-472e77951e40@bootlin.com> <20231114-feature_ptp_netnext-v7-15-472e77951e40@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 18:35:25 -0800 (PST) On Tue, 14 Nov 2023 12:28:43 +0100 Kory Maincent wrote: > + if (!tb[ETHTOOL_A_TS_LAYER]) > + return 0; GENL_REQ_ATTR_CHECK(), not sure why anyone would issue this command without any useful attr. > + /* Disable time stamping in the current layer. */ > + if (netif_device_present(dev) && > + (dev->ts_layer == PHY_TIMESTAMPING || > + dev->ts_layer == MAC_TIMESTAMPING)) { > + ret = dev_set_hwtstamp_phylib(dev, &config, info->extack); > + if (ret < 0) > + return ret; So you only support PHYLIB? The semantics need to be better documented :(