Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2300492rdb; Sun, 3 Dec 2023 10:38:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8PWBM+DyX0tipCjHhrAFayS44/JDd0+ZtDSAXF/ArsIHtEsw8Zbp8BuOCOOg3T0UFDsCB X-Received: by 2002:a05:6808:1294:b0:3b8:b063:9b69 with SMTP id a20-20020a056808129400b003b8b0639b69mr4004580oiw.91.1701628705490; Sun, 03 Dec 2023 10:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701628705; cv=none; d=google.com; s=arc-20160816; b=F3KXKoCgdUgZxI74a564RlmwuVFv9gIcksVaHhEYXMaTPYGjagaDoqX+0DjK+fBSsB 5aYDqp6CHfpcgbxgjZzJd/sIWhS3cK06b4ijnWTrMaQi5PYuuWriIhNMZJrQM2r8BoKz vNdW9KtfjFtiWC9AOvMqsEwiwmvCFjGKkyVibkk6LF5LAz/fU0kOTNkAeDZYt2OyW/bS CpYjDfaYDqs3VDmflSlxPWI1RFRd+osOYlKxJKnQlIM+srYa2praaGTpHbZc9w7Wd1ch xY6r+oBQ0FHo8Fgf/zQB3+Oe9u5D8+TjqZ08Qdc/9DUJEhHtcW5E91wda0VFleDIgdII rIQw== 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=HLV8YOVDigNgWOz0plPakVj5s9mqkHpb2at7e7OE9i8=; fh=Pjt1u2jYzBNM6MqsUcYRdRQJ+6yRE69fI9ZqXp0NdkY=; b=SCmwXP18KuXrzAiH3aEH63YNVKnceW5YB6/6gQV8cD/grBjWmJgzQFIyYggZVDD1Tb 5s+danAYjD+u50YYtvV/lY1UOXhtBulfG6JnVDxEmfLmFikWEJ519UsZfgFcXD2Sdn95 Dsbsv9B6KWpMm5aDbkKMjm8/tOTMRhB5gXot2ozJqbn7VppI+1eHjpgJWbN+FF+Wmp36 kuL9oEWwa7/5Qux7qjM6tDTVI9rID10zLm1kyjYJo6hFHgOMmgj03649RpaoILDVv7wb 1LzvPCgKOrm5hnnSwppv+rEPKI68CMkQGeq2PyIBVOryJdlalD4xnLz2SkF+CIPekxxU D/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=maVOiZen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q3-20020a056a00084300b006cbf1bb0b34si144511pfk.323.2023.12.03.10.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 10:38:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=maVOiZen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id ECCA3806AFFB; Sun, 3 Dec 2023 10:38:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbjLCSiH (ORCPT + 99 others); Sun, 3 Dec 2023 13:38:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCSiG (ORCPT ); Sun, 3 Dec 2023 13:38:06 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D029ADA; Sun, 3 Dec 2023 10:38:12 -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=HLV8YOVDigNgWOz0plPakVj5s9mqkHpb2at7e7OE9i8=; b=maVOiZenfrED7JgoNTkfQoYl6E xnjzKhI7F2GN6XDMO1Dy2rjMf3sVIlFb1qsKR6FYxdxRR46ZRliG+7ekpTyC40QnvmRBMUT7Ze6Md aFoKgrKfZGMWlHEHSndFe/iVqCgjt1O4OpTznUqPS0iA7cYAt0plIPyUSxW1MEjsAtb0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r9rLw-001uPa-IS; Sun, 03 Dec 2023 19:38:04 +0100 Date: Sun, 3 Dec 2023 19:38:04 +0100 From: Andrew Lunn To: Kory Maincent Cc: "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 , Oleksij Rempel , 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 v2 3/8] net: pse-pd: Introduce PSE types enumeration Message-ID: <69292ed5-63d3-4316-9bab-630bd00ce807@lunn.ch> References: <20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com> <20231201-feature_poe-v2-3-56d8cac607fa@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201-feature_poe-v2-3-56d8cac607fa@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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 10:38:23 -0800 (PST) > +/** > + * enum - Types of PSE controller. > + * > + * @PSE_UNKNOWN: Type of PSE controller is unknown > + * @PSE_PODL: PSE controller which support PoDL > + * @PSE_C33: PSE controller which support Clause 33 (PoE) > + */ > +enum { > + PSE_UNKNOWN = BIT(0), > + PSE_PODL = BIT(1), > + PSE_C33 = BIT(2), > +}; Maybe this should be in the netlink API? I think you can imply it by looking at what properties are in the netlink reply, but having it explicitly is probably better. ethtool(1) can default to PSE_PODL if the property is missing for an older kernel. Andrew