Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2401105rdb; Wed, 21 Feb 2024 06:41:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHwuPDt/JD+x4DBEr8IukTlZt4acEv2oWIX0OAw5KCidd2Ebep9yYiSLGPnIanW4J+hjPS7SrpiQ5mZk5WcIa14nQDQm5WNCjcmMRSKA== X-Google-Smtp-Source: AGHT+IE8LjiP768esMoHh0jn0AclowTF5t5DEyoquyJdCiLayuKkpyBwTQ2SB0uLYsUz7KZmdoeW X-Received: by 2002:a05:6870:e311:b0:21e:70fe:9bf9 with SMTP id z17-20020a056870e31100b0021e70fe9bf9mr12777825oad.51.1708526493925; Wed, 21 Feb 2024 06:41:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708526493; cv=pass; d=google.com; s=arc-20160816; b=Wh0btMoGEYKSgj7xFi6XBsDtch7ymaf27IQF856GJBUjgw/Wx4AI0BO+X0gwPiFZ46 t6oj6yanrpZiz9orUPyDKRJ84nCGpXCiLIvbY9etEeaiml+v4FEDGzPLB8+Hspar3fed l7ouf/0dIKOwW18G0lgTPw4Bg8xZIhWlFULLRIl7se9IKlRvPJaousbW67ZerXMCrNjc +JE2Wozg2O1tY357unm0Crn6zXtYQ9QxieHyH7TZ+Z70BlcbSoSM+aSApqy/20cJCpeh 2KXuJQg14CxWJxbqj4DllmSXUE14VWkkb1ftryLWKsUxGVy/XVt23kGOwKNJCPFjD9EA CeYg== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=tQm0Ki+vp+Zu8t/KqaIVW4arTM7ikJLGwDxFBBM8zRM=; fh=frqtlri+mhINxfXByQ891XgzFW8mb2VhhgnFvXClYv4=; b=mk3GEq2Xq1JhYzl9ezbi9qlD9ynFzoA4Vvui9+gR/wjSKdXRB64nfQR61ArmBssCfH n8ItqAKvYCMjS3VJ+H2WuQQ+t7nAnhi4PbX6VhEMa4zpoJh8sO/dwZu70nRibW7LeGIE veYCyIL+K14R4HRnTyuf6UfnC28bJ3YUt5ggHrlQMwLTR6yfBA+o8FFwJLn58xfMbgf6 oOWeW5haHPBbQrjgTG01OIqaztzTRJc+3SOkQdjIlwoypQTmBJy9M3dptPDjmjpluN2Z fWL88KsvHJDWrStzLiu/bZMj1sfIpBLz5nqWJ4FdLzmUXT6Y+q4mwX6tCh2ksiYmK4/U dfWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y6yTi2qQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74918-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020ac8548d000000b0042c3a10bb44si10306955qtq.313.2024.02.21.06.41.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:41:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74918-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=@bootlin.com header.s=gm1 header.b=Y6yTi2qQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-74918-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 76ED11C24479 for ; Wed, 21 Feb 2024 14:41:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89E5C80615; Wed, 21 Feb 2024 14:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Y6yTi2qQ" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 582307EF03; Wed, 21 Feb 2024 14:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526421; cv=none; b=ejwueMlJyPtzNaCQZRtVb8PhYG7OABXAOFeUhpa8EIeijEWeFCVg/Gta7o2+DzcVOKrLvCZ1yQrflAlkepnuv/uDu3rm2wsjgMu0xlU4E+RgH5o09gm+9/O9Gfwik8LCiViuKNlq/7BltD1+vLbzoQniu1b/cQuQCzFU8FXxdiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526421; c=relaxed/simple; bh=Vtj87ir413FfelSjrCQhZpK5ETcv5wHwL+6tPtbC/Uc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CgPb+phhpu8x/yCZhkwYs2ZBe3hfrdZ5qVR/YE6SK4o4o86rSFrYZolB3mqnNAEmbXlJ3pxKGtBNszAIK5pA/Q4QgcfLsB34KGgVnJ8Mk+66/fCjUi5IcNES0mipFcDpGarY8JhMJ3WVaVd8xMDsUt/CqUF37QZhleRSNlNJHwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Y6yTi2qQ; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 44BA0C0005; Wed, 21 Feb 2024 14:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708526411; 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=tQm0Ki+vp+Zu8t/KqaIVW4arTM7ikJLGwDxFBBM8zRM=; b=Y6yTi2qQeizuS5QqtOVYt2nD/gLX1NBZSTTyeKh7qGJlx0SKp7Qbuom3BsiBfoyXIm1XBU 89mGEKUeZo4PW7DXVu4VwkwHCZw81uvIl29JXXoe0nHedMk8bJWz/sMy+jMywiEaMSX6fU 2R6XzTWuRfhe5/+FyRpfGc4dUN3LM82he24bmlACxF62NwzNTY65tL8eLSq9xR8ZflZcvF CXlqQ3azgASB6cZVNqsNtM0hzKIXEVikJzc1ThwlDphHdccIDb2nCAb/XrRJ5Mk4kZop0Y EO7Yns5A+Mti/OkLhpsNfzuzY94H0OB3oNUb2x5+VjgAaLV/xPyGlZvt92gHDw== Date: Wed, 21 Feb 2024 15:40:06 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Andrew Lunn Cc: Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , Mark Brown , Frank Rowand , Heiner Kallweit , Russell King , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v4 05/17] net: pse-pd: Introduce PSE types enumeration Message-ID: <20240221154006.7ad2d66d@kmaincent-XPS-13-7390> In-Reply-To: <11225a0d-bdc4-459c-9258-c9da217cc89e@lunn.ch> References: <20240215-feature_poe-v4-0-35bb4c23266c@bootlin.com> <20240215-feature_poe-v4-5-35bb4c23266c@bootlin.com> <20240215105846.6dd48886@kernel.org> <20240216104211.2c11d1cc@kmaincent-XPS-13-7390> <20240216173638.4bb12af2@kernel.org> <20240219160456.0b5e8de3@kmaincent-XPS-13-7390> <11225a0d-bdc4-459c-9258-c9da217cc89e@lunn.ch> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Mon, 19 Feb 2024 16:44:34 +0100 Andrew Lunn wrote: > On Mon, Feb 19, 2024 at 04:04:56PM +0100, K=C3=B6ry Maincent wrote: > > On Fri, 16 Feb 2024 17:36:38 -0800 > > Jakub Kicinski wrote: =20 > > > > > but why the separate header? Is it going to be used in other part= s of > > > > > uAPI than just in ethtool? =20 > > > >=20 > > > > We might use it in pse core if capabilities between PoE and PoDL di= ffer > > > > but I am not sure about it. > > > > Do you prefer to move it to ethtool header and add prefix ETHTOOL_ = to > > > > the enum values? =20 > > >=20 > > > I don't know enough to have an opinion :) Whatever you end up doing, > > > it's probably worth documenting the reason for the choice in the comm= it > > > message? =20 > >=20 > > Mmh, I am still not sure of the best choice on this. I think I will mov= e it > > to ethtool as you suggested. =20 >=20 > kAPI is hard to change. So it is worth thinking about it. >=20 > Can you think of any possible kAPI not using ethtool netlink? Its not > going to be ioctl. We generally don't export new things in /sysfs if > we have netlink, etc. >=20 > So to me, it is only going to be used be the ethtool API, so i would > follow the usual conventions for ethtool. Oops sorry forgot to reply to you. Indeed I reached to the same conclusion on my side. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com