Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp549927rdf; Tue, 21 Nov 2023 09:26:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNjlXVL948yf5/L7ZRgwMlIgpE8xp8RmxHKpuEE01QqGFp2n+t3BFmTuPeIkcutPe89ItO X-Received: by 2002:a05:6a20:144b:b0:18b:4fa:a877 with SMTP id a11-20020a056a20144b00b0018b04faa877mr1795959pzi.14.1700587577942; Tue, 21 Nov 2023 09:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700587577; cv=none; d=google.com; s=arc-20160816; b=GAYzniifRUDhFZur66DbTTlFY35A+fhv0pfsbs6O3CMsvjwArldvCg5MjF1/xsDjQc QzjIBS+cWtMGG+E/ZlK8uXZfRm1/Asm+H9xTxzyXB28c+z7H3sDsE/Xxprb8Z0ExFwTq a6f8qfD+BWg5CAPsl3BJV6gSAMfU+kFDMHZkHgp6wl52n5VN11PFFu+4xCx9CXfpEMxQ wte5nRySp8IMkNyX6Pb7Gwv09ukQHjIWYKm3Pu2UNkk8spyGNi9BlJ/UsRye3WPv2Nbz yqm+gxCS4frkBS16E+iMKeCUFZNqW2QSlwAVsvx6qeDckRSr54y371qdt5DYCTh5QKuy a3+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7Vk/mqg19Y1cXv6QZAT5QkHwUasolYWNhqzl+nIhRfA=; fh=DHfW2w9+rsJm2t8QBrqhTAL+wREFUhN6a5KTmrBIHPc=; b=lFGINu8k8J6uZ3L1lKjaF+UMNEkjWGelR45x+B9CYrMmDVrbjdNWh4JlXSRViOevuf 7zbZeJFD7kafTmJlct4iN8mB5lxN1ANmCe0GJMmdhp287EEkIcFB8ENzVQZPV+kDkCjK i1Ckl8pHcKv24+3cyou0dorERnP7tW8mciX3Y4v1Qfe0W/sjkLqk0DTac3kSGGeRWSj1 2b9RYZQT/a4JRbi8Z8veZwfRZFVpzgrD4tXy0ODcvHYWvbLcGUbhjpO7rPSM9SCcZoDP FEeNoIZxbLrcd6HN07s50sO2lhwjC9bpoYpNmr9Oeu4N6Bt4IuVTMR/2HFX1fWyY//WW 4+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="yAoXmN/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l64-20020a638843000000b005b7d9aace9dsi10642919pgd.46.2023.11.21.09.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 09:26:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="yAoXmN/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 36CF7802CD23; Tue, 21 Nov 2023 06:19:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234105AbjKUOTj (ORCPT + 99 others); Tue, 21 Nov 2023 09:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233912AbjKUOTi (ORCPT ); Tue, 21 Nov 2023 09:19:38 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A52AD10C8; Tue, 21 Nov 2023 06:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To: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=7Vk/mqg19Y1cXv6QZAT5QkHwUasolYWNhqzl+nIhRfA=; b=yAoXmN/fVOrsqiiYvB+zhuT7Qu 7Fb8Mz4E4IxdqTQv6B+Q/2aO/qOg5a6s57g23kwVJfwVM1q/q8tF8RSaxSRFRas/8GkC6FQ8JQyvR M8NuXbjTqxn77lxT9utOfNH4BY2YvE7IlU9i3xohyVo5pk7ByALlPDGnOoRq+oDhE+XA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5Rax-000lPS-QM; Tue, 21 Nov 2023 15:19:19 +0100 Date: Tue, 21 Nov 2023 15:19:19 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?K=F6ry?= Maincent 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: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121110215.07f61e55@kmaincent-XPS-13-7390> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:19:46 -0800 (PST) > > However, everything not PoDL PSE seems to be clause 33. So how about: > > > > enum ethtool_podl_pse_admin_state podl_admin_control; > > enum ethtool_c33_pse_admin_state c33_admin_control; > > > > 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. > > > > 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. > > > > What do you think? > > If we decide to add a prefix, "c33" is precise but less easily understandable, > why not using simply "poe" prefix? 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. 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. 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. > Maybe as POE were originally PMDI you prefer to use c33 which won't change over > time? > > 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_* Yes. That will help avoid getting PODL and C33 properties missed up. Andrew