From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 C746B11CAF for ; Wed, 8 Jan 2025 05:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736315252; cv=none; b=AzXPNkCW6Z6zrLWEhaE+X20xRWA2je+IIIvYP3+sJFysv/nfqog9ILMg2yEiLeefGZku6Vg7v+vSSpJEs6yuNk8TqR8cdc7kOBwOtL5KFzc9GzK2hXAz5xqVkD24EAmpwSjlgD3WLqhg7fJvyuT9VR3VX0iUQTdbeMEr/7a73Lk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736315252; c=relaxed/simple; bh=mPKhWPu8pYX8pUmDbAmVTi61K7p19wbdAQVS1KLCFB0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IEOP5MzSpJi2kcBExBAc6Ma+ijUgE6pf4FBCazkhTFDMs/a73xP4Ujw0nrAarmplqoe5GcTrb7iY2eHZaYHAx0B1rnGCy8sCffPFNtNbouneQdsZZ2G8Wdxcsh+A97SBMg1SU6wbzcf0hmwBOCCRvw0yKtkSK1hMLMiO4FfemQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tVOuR-0007Ui-V4; Wed, 08 Jan 2025 06:47:15 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVOuM-007Spp-10; Wed, 08 Jan 2025 06:47:11 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tVOuM-00BNpv-36; Wed, 08 Jan 2025 06:47:10 +0100 Date: Wed, 8 Jan 2025 06:47:10 +0100 From: Oleksij Rempel To: Jakub Kicinski Cc: Kory Maincent , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Donald Hunter , Jonathan Corbet , Liam Girdwood , Mark Brown , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Kyle Swenson , Dent Project , kernel@pengutronix.de, Maxime Chevallier Subject: Re: [PATCH net-next 11/14] net: pse-pd: Add support for PSE device index Message-ID: References: <20250104-b4-feature_poe_arrange-v1-0-92f804bd74ed@bootlin.com> <20250104-b4-feature_poe_arrange-v1-11-92f804bd74ed@bootlin.com> <20250107171834.6e688a6b@kernel.org> 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-Disposition: inline In-Reply-To: <20250107171834.6e688a6b@kernel.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Tue, Jan 07, 2025 at 05:18:34PM -0800, Jakub Kicinski wrote: > On Sat, 04 Jan 2025 23:27:36 +0100 Kory Maincent wrote: > > From: Kory Maincent (Dent Project) > > > > Add support for a PSE device index to report the PSE controller index to > > the user through ethtool. This will be useful for future support of power > > domains and port priority management. > > Can you say more? How do the PSE controllers relate to netdevs? > ethtool is primarily driven by netdev / ifindex. > If you're starting to build your own object hierarchy you may be > better off with a separate genl family. I hope this schema may help to explain the topology: +--- netdev / ifindex 0 +--- PSE power domain 0 --+--- netdev / ifindex 1 | +--- netdev / ifindex 2 PSE ctrl 0 -+ | +--- netdev / ifindex 3 +--- PSE power domain 1 --+--- netdev / ifindex 4 +--- netdev / ifindex 5 +--- netdev / ifindex 6 +--- PSE power domain 2 --+--- netdev / ifindex 7 | +--- netdev / ifindex 8 PSE ctrl 1 -+ | +--- netdev / ifindex 9 +--- PSE power domain 3 --+--- netdev / ifindex 10 +--- netdev / ifindex 11 PSE device index is needed to find actually PSE controller related to specific netdev / ifindex. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |