Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp441327rdf; Tue, 21 Nov 2023 06:58:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhf+IcM7tlgZqO6KOcwFcfUvHBUoSJr8ffNaoQbFAD0O61GZzMA8VLyTnq8tRHsoef1BLg X-Received: by 2002:a05:6808:13ce:b0:3b5:84b0:6be6 with SMTP id d14-20020a05680813ce00b003b584b06be6mr6470343oiw.47.1700578692050; Tue, 21 Nov 2023 06:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700578692; cv=none; d=google.com; s=arc-20160816; b=j5vLtn4zXyep+SS8fZ18f0vS9k2Gqo4HDeFL5tV846imjkXzbPqLEpZ9dXjWfuGunB uWiLr1WUUegDHYS74XMHcUJGIGeAoHmjrrY6asJ8JFLghLupynuD7jg458koiq4Z33zm kvUV+T+ypu1x2V7ywfcogjz+ckRX0KbtTISgLHYAxDUm9ArTqCnoM6c6FWap4Zk9mEW6 Xg7ADrRjcpBwFB/gks9Ck+cSyqmKsy96Cz3t9G/cb/iZccVZhN4CErXUFxAOqU1FrXCJ pVgcQypKCJlwu6FS+Rod4JIRZEnrYhcVxRa6qqcZTz9GSKXLYrlH82jPB8J+qQ5EylJO R6mw== 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=khxP4fXOUOIWA699Z/Zj5Syc66Lt+5ABqJOlzJsvRtk=; fh=7j/+UamlJaw4enCd2GLN6f+irTqNZid68lD1iMh458Y=; b=DizfLuOMGum2U/Art1xXId62gcBXQfpe0k9w6cj/dZardEU9Eblryo9ur1iW3tMqfn px0NjnegoJ0KhGPe66UKQgARqa5WoaT0A43V+BEkKTB6Aro2Wc/c7f38eQcv/wXzKT6a E8V20JNxv92vqz8w3ewzbcKDg0psCPiny9UlaxsTryetzLV4o+XInZ9tSbSpfbQvHqcY eYlBVhuDFY76f/XNmmGrpunYgf399FUGHTbNIT4jvB8CsOeNy0E2gof/H4ceuluRQEOb 6UPrTSiYcCDHMiytLd3mT8h2HTdA9sFr85Ws3/IHm+feuj6KxWnO2xIadbXA1G2lNqjI 8RFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hU4JPsdt; 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 u21-20020a634715000000b005b55df27b44si10374581pga.340.2023.11.21.06.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:58:12 -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=hU4JPsdt; 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 D18F080A5666; Tue, 21 Nov 2023 06:57:14 -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 S234813AbjKUO5A (ORCPT + 99 others); Tue, 21 Nov 2023 09:57:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234787AbjKUO47 (ORCPT ); Tue, 21 Nov 2023 09:56:59 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66E012C; Tue, 21 Nov 2023 06:56:54 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id AC6211BF211; Tue, 21 Nov 2023 14:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700578613; 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=khxP4fXOUOIWA699Z/Zj5Syc66Lt+5ABqJOlzJsvRtk=; b=hU4JPsdtnkyQxT0F1F4Q5i4r1EhdISiflUXXD+Zw5eUJr8WZIcQW19HeeaLH7/1JzDSjJ/ uYVtkf7/wrGLZEgPF3tsHEGkkY0oJUg99DV5oTPUKiAe1jBE6C2JbprD0TrXJnquTnbsQb s6HBH5N/JeJ3Zf/JTqrKTbESTrtS/b3mlxmslNlvYglR6iOjgZuEdCM4cXX2Cn5359gzYD BOLNGRlsvLYpfKbjSqtw3tAovnZxcIEpJrkwtjQeFA7M3i5umBvrKepydR9WMRKzke9d3n j3b7NlNBxg/ZztRAjckYV9zWXd4Pr8LTyVXwPfDcSj9HAT0ODMcMSVYmyf0ooA== Date: Tue, 21 Nov 2023 15:56:50 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Andrew Lunn Cc: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 2/9] ethtool: Expand Ethernet Power Equipment with PoE alongside PoDL Message-ID: <20231121155650.5c0d2f82@kmaincent-XPS-13-7390> In-Reply-To: <44cbe9d3-dbd2-438c-b413-af525426781a@lunn.ch> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-2-be48044bf249@bootlin.com> <04cb7d87-bb6b-4997-878d-490c17bfdfd0@lunn.ch> <20231120110944.66938859@kmaincent-XPS-13-7390> <20231120111008.GC590719@pengutronix.de> <2539b109-72ad-470a-9dae-9f53de4f64ec@lunn.ch> <20231121110215.07f61e55@kmaincent-XPS-13-7390> <44cbe9d3-dbd2-438c-b413-af525426781a@lunn.ch> 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]); Tue, 21 Nov 2023 06:57:15 -0800 (PST) On Tue, 21 Nov 2023 15:19:19 +0100 Andrew Lunn wrote: > > > However, everything not PoDL PSE seems to be clause 33. So how about: > > >=20 > > > enum ethtool_podl_pse_admin_state podl_admin_control; > > > enum ethtool_c33_pse_admin_state c33_admin_control; =20 > > >=20 > > > At least inside the kernel we use c22, c45, c37 etc. I'm not sure they > > > are visible to userspace, but if we don't have a better name, maybe we > > > have to use c33 in userspace as well. > > >=20 > > > I do think naming like this makes it clear we are talking about two > > > parallel technologies, not a generic layer and then extensions for > > > podl. > > >=20 > > > What do you think? =20 > >=20 > > If we decide to add a prefix, "c33" is precise but less easily > > understandable, why not using simply "poe" prefix? =20 >=20 > I suspect poe has the exact opposite problem, its too imprecise. Its > too much of a marketing name, with no clear meaning. It could even be > some people call podl poe. >=20 > To some extent, this is a user space UX problem. We can be precises in > the kernel and the kAPI. What ethtool decides to show to the user > could be different. Although it basically is the same problem. Alright, thanks for your answer. > Do you have ethtool patches? What does the output look like? Oleksij > did say a hybrid could be possible, so we probably want ethtool to > group these properties together and make it clear what is PoDL and > !PoDL. No I don't, I am only using ynl for now. I would be similar to podl: https://kernel.googlesource.com/pub/scm/network/ethtool/ethtool/+/e6cc6807f= 87c74d4e5b1f1e9d21d3a74e75a258b/netlink/pse-pd.c Duplicating the PoDL part with c33. Using the same --set-pse and --show-pse options. > > Maybe as POE were originally PMDI you prefer to use c33 which won't cha= nge > > over time?=20 > >=20 > > Should I also modify the content of the enum? > > ETHTOOL_PSE_ADMIN_STATE_* to ETHTOOL_C33_PSE_ADMIN_* > > ETHTOOL_PSE_PW_D_STATUS_* to ETHTOOL_C33_PSE_PW_D_STATUS_* =20 >=20 > Yes. That will help avoid getting PODL and C33 properties missed up. Alright. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com