Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp561630rdf; Tue, 21 Nov 2023 09:44:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhXLqupvERSydZX2WZwwahhIDbmWnJojTRXbT6CJwa0c71hQpchUomGFdM8CQQfefa03IQ X-Received: by 2002:a17:902:6b48:b0:1cf:6989:f45f with SMTP id g8-20020a1709026b4800b001cf6989f45fmr4329352plt.18.1700588649818; Tue, 21 Nov 2023 09:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700588649; cv=none; d=google.com; s=arc-20160816; b=WW/Qm7Pj6PmsGBt/htE/8MaiqLTIa6YJwVo3jPSf4vVlFqGbfUQSnbwL3iSdWRGbjp 55XTvB+E/1Qu6y/OaEaUlmtRvcSAzBqwerPjGgr9REeK0/u11Ozl1jKcOv7YJRB24jDl IYE00bChu/lalJJ5K4ogbKghN64/5P6b+0Uh3/x8/tCr6z6xlGSo5ABIC084dpU70LCg pOm8y18ZbzlVced22iDgL918wD6uEfkksc/TYooMGQBtRHWMlkF2IW1r6fUhYwUA5QcH 0JQHVlxzGLTtSddBW3cSFM3PHV2JO/ottu+Y8/Sxvz+fBrJ3vj5C4CAwjeUHjYCI/uYg eUUQ== 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=4Stk+CLRfzPrp0zRVv06sr058u9egm2IhKL8kU0uwiA=; fh=rXr2viSnqPPLcanpLdfMjBvALm5Xl74bkfC0+/OLMD4=; b=Frm5Ji3hV7wdxJF/vwfCJItuZarFutGm5N+P79ozcCnxx24mTpRLwdhtLb/ttrau4b WHyBpzeFDXEqXks+0PGgUTsTmjMYWNxkSZFX7/OjdLuzwUdxKhChezI0buoSQ7FhHrjC v5DkmMqpzXzy07VW4osQXWF68uEAgb4l/Q4IO+BmJlmH/FWGILoxy77IHeaYAYfYUlt0 gRIQEAbYy+uJChFAQn5U9igGy/uiFUKJMQJjyMoX/1ZjhvyuCR7nETqqev3UHAI6cJwR 6mH9gcbmZEvo4kSCHNeY2P9+WHIs0ZKqwX9gHq0lO1FLy7vMetAtqpps5yhPL9hKA6lT /NUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqJwICL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x63-20020a636342000000b005b9483bf765si10458184pgb.25.2023.11.21.09.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 09:44:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqJwICL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 64AF1814C68F; Tue, 21 Nov 2023 09:44:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233504AbjKURoB (ORCPT + 99 others); Tue, 21 Nov 2023 12:44:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbjKURoA (ORCPT ); Tue, 21 Nov 2023 12:44:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BFF2112 for ; Tue, 21 Nov 2023 09:43:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D5D5C433C8; Tue, 21 Nov 2023 17:43:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700588636; bh=gnUMTK1bw92CwGDuRlTgAm7doJIPoMNyCa9J3hZFk0w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FqJwICL1kBDQbIlpNtsh2Lh4TokSiyA5IgHA48yDVQ5hkl4QG4EHxS0/3CnDESTZo eKUruDuuPsWMn7lBqgiR8ymZBEUyHfs4uhGLeovjKR12R/orFIU379hlSmce0jB1So owbsZstA5xYQu26HlHm1dSmGs7dNcYNbFvN8EZ12wuZ2JzI5YsNiMW96M84PZP7RVH d1YeJkqalRcdS4LfnzOUF2kPaE/9uP4bW7jDl6tkiOyZcLf+3DTvZDkViceFDI7+wC y6/TVZ9BmwA/mKO4zs17YfNmLBMDu0K7OLddMQZOvsj/izW2477J0qV+Ttlo2XsKnD hf66KY4LtQUhQ== Date: Tue, 21 Nov 2023 09:43:54 -0800 From: Jakub Kicinski To: =?UTF-8?B?S8O2cnk=?= Maincent Cc: Vladimir Oltean , 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 , 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: <20231121094354.635ee8cd@kernel.org> In-Reply-To: <20231121183114.727fb6d7@kmaincent-XPS-13-7390> References: <20231120105255.cgbart5amkg4efaz@skbuf> <20231120121440.3274d44c@kmaincent-XPS-13-7390> <20231120120601.ondrhbkqpnaozl2q@skbuf> <20231120144929.3375317e@kmaincent-XPS-13-7390> <20231120142316.d2emoaqeej2pg4s3@skbuf> <20231120093723.4d88fb2a@kernel.org> <20231120190023.ymog4yb2hcydhmua@skbuf> <20231120115839.74ee5492@kernel.org> <20231120211759.j5uvijsrgt2jqtwx@skbuf> <20231120133737.70dde657@kernel.org> <20231120220549.cvsz2ni3wj7mcukh@skbuf> <20231121183114.727fb6d7@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 09:44:07 -0800 (PST) On Tue, 21 Nov 2023 18:31:14 +0100 K=C3=B6ry Maincent wrote: > - Expand struct hwtstamp_config with a phc_index member for the SIOCG/SHW= TSTAMP > commands. > To keep backward compatibility if phc_index is not set in the hwtstamp_= config > data from userspace use the default hwtstamp (the default being selecte= d as > done in my patch series). > Is this possible, would it breaks things? I'd skip this bit, and focus on the ETHTOOL_TSINFO. Keep the ioctl as "legacy" and do all the extensions in ethtool. TSINFO_GET can serve as GET, to avoid adding 3rd command for the same thing. TSINFO_SET would be new (as you indicate below). > - In netlink part, send one netlink tsinfo skb for each phc_index. phc_index and netdev combination. A DO command can only generate one answer (or rather, it should generate only one answer, there are few hard rules in netlink). So we need to move that functionality to DUMP. We can filter the DUMP based on user-provided ifindex and/or phc_index. > Could be done in a later patch series: > - Expand netlink TSINFO with ETHTOOL_A_TSINFO_HWSTAMP_PROVIDER_QUALIFIER. > Describing this struct: > enum ethtool_hwstamp_provider_qualifier { > ETHTOOL_HWSTAMP_PROVIDER_QUALIFIER_PRECISE, > ETHTOOL_HWSTAMP_PROVIDER_QUALIFIER_APPROX, > };=20 >=20 > Set the desired qualifier through TSINFO_SET or through SIOCSHWTSTAMP by > expanding again the struct hwtstamp_config. >=20 > Do you think this is feasible?