Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1211736rdb; Mon, 19 Feb 2024 07:44:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0aydbav4ThfsYeAkwRNEt/GolOF6FhMeSaD9Pc9T3BVl3/3/b2cJNN/pwMdpXWyHFd5lCmQhwsF7k/ut6IJZTRHvTiM0eov+2VaXsSQ== X-Google-Smtp-Source: AGHT+IH1GSPZ7psD9M8SJdjkCBslDeb1156rwtkd/qq7yjwPT0eI05Ckj4wElY+kkxZul6xo6Uvn X-Received: by 2002:a05:620a:192a:b0:787:6ba3:f0d5 with SMTP id bj42-20020a05620a192a00b007876ba3f0d5mr4125898qkb.34.1708357494617; Mon, 19 Feb 2024 07:44:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708357494; cv=pass; d=google.com; s=arc-20160816; b=bVU8/nbudGtMyLOAzxtTZlHay6wYeLOq7eFZ4wh6HW/1dGNVYlVgoE2R4n6HzWyXRE X9/rXw7K9PGROlb7CemCCwf+PHGrMUw7Mp1eLgpDOC88IP6OJ63hRwrsdYE9i2/B6+UA XWSwrsUM9C2qMcgsWI0S7zR7nZn2xnPvG7O59CxPKdYsggj9N+S6Rbx95MFu09ATSHT8 zoGUKWVX/UDrwUcIlekYXS41ztUEYzZdlODOZeBi9kd3DIJ0F+NveubbtrysR7Jnu4eE cuxZJDKLgkEsQU66bV09gmTFcFazCZpdUQan825gBLbXH8hnBilFYPnj5UzTu4juoRwA 3SKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pH5Y2yN2vdQCTWiEZvOwFMYMekr4MsvZg3ozDbgomZY=; fh=KZv4CpYDYhj/65DDvLOE8xt6BPe3dKYywYHPjf3tYBw=; b=D9qR03D9WrtUzCus+eEhicLpkVs8hnj74BTsbAeYgJp4N2Scfa/24sattYc1UN0MCI UeGnYFczc0gRhEA9enPvQqykvUhXfF6jBhWiAXVs7HfnhdUEPixoJMUWsUApX5MGZd0m P5RuanPHbH9lkMzDSy91NhS8qJUvitTpR8Hy87jwoqpp6S969tRU2vJ9zTO/edfLkDug UimOkO1m4/pJevaO4X+RoEXDrNXzt5UArAgHUEWVAIW36DS3OlL56bW7ZyTiKJu1hVeg MLq9LcmvnKoW8+oFd8qpOlCCouEPLsTxFdAGWr8dlKgk5YFPsnwjBPsgL0WqgSG/YhnZ SZ5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ghd1fJnL; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-71611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c22-20020ae9e216000000b007871fde4dd2si6312204qkc.471.2024.02.19.07.44.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:44:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71611-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=@lunn.ch header.s=20171124 header.b=ghd1fJnL; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-71611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 495DE1C2296C for ; Mon, 19 Feb 2024 15:44:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BA253BB48; Mon, 19 Feb 2024 15:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ghd1fJnL" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 AAF193984D; Mon, 19 Feb 2024 15:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357476; cv=none; b=Vbc3sTAuHDJEk73ctCpwxpcXMfDOn0PAoSbXXRCfwOJmsagoPMvhCK5m6Cw/vj7xXws8jN5Tt1Dct6fT20d4wSh5H1AfkTFmoxuAkjWfmJzaDyQhEhe0nt1FlGWNWQqAeK6FrSmTAOJwqcDyTTU1FDUm5fZVOTNcTiVETFl8YRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357476; c=relaxed/simple; bh=GvrzzQiSIp0fJMCOPW9fDjx5IN1hYWlflJ2j1cj5MBY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dw8fL6Diaftcm9JkLPtRgs/RheJchLKeQysejSL9ltuoVMU0Pk15MayMcsh/HofViKHp4p6FRNlM6MuqwrzDaoPXIsitnJ966f36KiIvRxR/UdtueeB7Ta8m1rm7tgOqkfpdTyjbHRwXaPGQVFR0ssLaGQK/H9ZKMxtzMsJc9oI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=ghd1fJnL; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=pH5Y2yN2vdQCTWiEZvOwFMYMekr4MsvZg3ozDbgomZY=; b=gh d1fJnLTEaw9+hSiCZeZFiCGvrExh3Yy5rk3LtUUqLb1yNIu3JiogpNRNRtLJ8SQPbI/OUuZ1AnqRg O4dybcYLMWSF3XWe1Sd9M1MPZHb2lsx5WwBY6G4/CwYjoDB2yoOz80LRwi/xrdC0uTNmfx7oNHdAX zwULkTfhY6WRTm4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rc5oo-008D3A-5R; Mon, 19 Feb 2024 16:44:34 +0100 Date: Mon, 19 Feb 2024 16:44:34 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?K=F6ry?= Maincent 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: <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> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240219160456.0b5e8de3@kmaincent-XPS-13-7390> On Mon, Feb 19, 2024 at 04:04:56PM +0100, K?ry Maincent wrote: > On Fri, 16 Feb 2024 17:36:38 -0800 > Jakub Kicinski wrote: > > > > but why the separate header? Is it going to be used in other parts of > > > > uAPI than just in ethtool? > > > > > > We might use it in pse core if capabilities between PoE and PoDL differ but > > > I am not sure about it. > > > Do you prefer to move it to ethtool header and add prefix ETHTOOL_ to the > > > enum values? > > > > 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 commit > > message? > > Mmh, I am still not sure of the best choice on this. I think I will move it to > ethtool as you suggested. kAPI is hard to change. So it is worth thinking about it. 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. So to me, it is only going to be used be the ethtool API, so i would follow the usual conventions for ethtool. Andrew