Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp399919rdh; Thu, 23 Nov 2023 07:01:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGo5LJdsknb8fFj+qTVV9wmmcXWirUYUGzxpasi21Rug6/3vXDSkCMwFrEtbskXdqhJuH1x X-Received: by 2002:a05:6870:9a93:b0:1e9:e268:ab6f with SMTP id hp19-20020a0568709a9300b001e9e268ab6fmr8049820oab.17.1700751718921; Thu, 23 Nov 2023 07:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700751718; cv=none; d=google.com; s=arc-20160816; b=LkUxuuTWXD9jA0R49VWeI95yKh8PLS6bxvSyjj9z7qZ+pvgOO311EYDDllj5jHSRuw ptG3Q8B+E0c8A5GxqpDhifmjxHy8AWXhweoNp4y7PG4hh10qT/QP4tKF9W2tse1yQnzS TawIO9U0TpH1DvqGAvD4m10Hf+EOX6wwmPGSbQCAw6hU0hsMdVBAxKrsDwIdDd9qS7xA V4f+i+2Rz6T8I43GGR4hEy1tEwhWjCahf6TR+yI4Dd/Qnr0CLxOskJ6CGuLPiarFWyWs cVdC/f3FGSY4p2JvxzXL78PvCOrN+TYydqVr1MmN+/7bdFrNSM0B5ew7EKrKVpwZmiRw U6Xw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=67t1kQ5eApWl1dAvZGC/sSzZTqCDw1OnraYDpdtwPb0=; fh=hQD45QDJ2bysLyzBrZwQAvoyLp6O8fXgP0a8Jiv/jdw=; b=x/4Y+yPQfz5wu3vuK2BnCDOsKaoKILh5U8MJKM6rRWBCNQAodp1jcGDPWtokvS47oi l9+Voq/KhHL3VaAoAyndH2rvyFIzIZn37TxzWfTVXiPdQ9vyu0TxWbt5YSMP8ypJkCTR O87rb5ZaLTHSxfXXa7EbF8Q0qaQBxuSlylLyPvMdynLI34dtQcaf0AP+Ba2SxC/2wHzj Hrf2IGG0quLtWBtAzOsS5NNUtF5R/WJU6WFfyb0JKMGLz4ispzmPrBf1XwEXRkqFFlHd a/UDPQn1K+uiWIoCCNz3F8eM4HB87jma17EErZZ/VEsn0vMBgyHX6OJoIrnN0VpJCCN1 FZoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fMJ+MHbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id nl5-20020a056871458500b001f95f46a6c6si564810oab.44.2023.11.23.07.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:01:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fMJ+MHbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4D7B081FD9D9; Thu, 23 Nov 2023 07:01:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346003AbjKWPBD (ORCPT + 99 others); Thu, 23 Nov 2023 10:01:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345983AbjKWPAz (ORCPT ); Thu, 23 Nov 2023 10:00:55 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EECBD4A; Thu, 23 Nov 2023 07:01:00 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2CB7BC0007; Thu, 23 Nov 2023 15:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700751659; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=67t1kQ5eApWl1dAvZGC/sSzZTqCDw1OnraYDpdtwPb0=; b=fMJ+MHbePAqSLetgUTxkoWL/yRltcQ5W6pj/ZeyrU0uBwtrQhzeaOl4yuWR6rQ5akSd74C MMUYTY6Z8qOcT3WD0p9rhAIMxkv1oAVx/8kmuLht5f7vmqn8xisgK51eESVTf718MKjwxh oq5PLpJyTm8MmCPet+utW5pDbsW02M4vDZc0sEqKQUhWc90DQNA0qZt664kdp3J3T1T/fl B9tCq9uGNkJtPSI1FYHRJlVYxWwvq12IFSKFZOa8cloJIgNIpYYTWsdS5qUglrja8lWLCq d5htaDWLWfNdP7ZJk8zJQGkDYlKtVhemZ+T9MgaDdvzReQfr+GgxXDRAbnKkDg== Date: Thu, 23 Nov 2023 16:00:56 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski 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: <20231123160056.070f3311@kmaincent-XPS-13-7390> In-Reply-To: <20231122100142.338a2092@kernel.org> References: <20231120190023.ymog4yb2hcydhmua@skbuf> <20231120115839.74ee5492@kernel.org> <20231120211759.j5uvijsrgt2jqtwx@skbuf> <20231120133737.70dde657@kernel.org> <20231120220549.cvsz2ni3wj7mcukh@skbuf> <20231121183114.727fb6d7@kmaincent-XPS-13-7390> <20231121094354.635ee8cd@kernel.org> <20231122144453.5eb0382f@kmaincent-XPS-13-7390> <20231122140850.li2mvf6tpo3f2fhh@skbuf> <20231122085000.79f2d14c@kernel.org> <20231122165517.5cqqfor3zjqgyoow@skbuf> <20231122100142.338a2092@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 07:01:31 -0800 (PST) On Wed, 22 Nov 2023 10:01:42 -0800 Jakub Kicinski wrote: > On Wed, 22 Nov 2023 18:55:17 +0200 Vladimir Oltean wrote: > > > Well, ethtool has been the catch all for a lot of random things > > > for the longest time. The question is whether we want to extend > > > ETHTOOL_GET_TS_INFO or add a third API somewhere else. And if we > > > do - do we also duplicate the functionality of ETHTOOL_GET_TS_INFO > > > (i.e. getting capabilities)? > > >=20 > > > My vote is that keeping it in ethtool is less bad than 3rd API. =20 > >=20 > > With SIOCSHWTSTAMP also implemented by CAN (and presumably also by > > wireless in the future), I do wonder whether ethtool is the right place > > for the netlink conversion. =20 >=20 > ethtool currently provides the only way we have to configure ring > length, ring count, RSS, UDP tunnels etc. >=20 > It's a matter of taste, IMO ethtool is a bit of a lost cause already > and keeping things together (ethtool already has TS_INFO) is cleaner > than spreading them around. >=20 > > I wouldn't suggest duplicating ETHTOOL_GET_TS_INFO towards the netdev > > netlink family. =20 >=20 > FTR so far the netdev family is all about SW configuration. We should > probably keep it that way, so it doesn't become ginormous. It's easy > enough to create a new family, if needed. So, do we have a consensus? Vlad, do you agree on putting all under ethtool? ETHTOOL_GET_TS_INFO will be in charge of replacing the SIOCGHWSTAMP implementation. Need to add ETHTOOL_A_TSINFO_PHC_INDEX ETHTOOL_A_TSINFO_QUALIFIER to the request. ETHTOOL_GET_TS_INFO will list all the hwtstamp provider (aka "{phc_index, qualifier}") through the dumpit callback. I will add a filter to be able to list only the hwtstamp provider of one netdev. ETHTOOL_SET_TS_INFO will be in charge of replacing the SIOCSHWSTAMP implementation. Is that ok for you? Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com