Received: by 2002:ac8:6d01:0:b0:423:7e07:f8e4 with SMTP id o1csp6633476qtt; Mon, 18 Dec 2023 02:10:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVyWGvRzRogx2ZFAkQ3xEkDR3HMncAsI9EgnQ898TCRD9fpQAAdYS/HWpTDy7BjMH8Ojn9 X-Received: by 2002:a05:6e02:1541:b0:35f:6c6b:abe0 with SMTP id j1-20020a056e02154100b0035f6c6babe0mr12128198ilu.25.1702894240708; Mon, 18 Dec 2023 02:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702894240; cv=none; d=google.com; s=arc-20160816; b=DLtyvhtAtM+KmDTD8X3sWv50U/Prcr3FZpNWOAU/Ase7vDd3R6wk34RnEB9/cekiGY ShUt7ca5gPONagM1y9yM7SsN+JSKr97A/p5x/nnFo1feAiqiPGTovoTCoLOps2mJ37Yg +UJqUbRcFseloU5s8C4yFUJL63sm29nH85ZzcHaGRSziiwmclXvCl2hv0k8zfaIgGNFr LdFBTjvlpe6cdYObqymAByG8YnT0vc6PltAiqrQ3jCAvlY4PutxegTesTzKAR73mCXYA 3/DM8nYcNWSKjIsWxHani9gjwcyMnCRQz7i2p9nEo+p92IWWu1kfLJHDmxztqJAPKq7p Y9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+atTE69qUF4qmAtBOv2QlTxSSQnSgQ2ejCWr//9J2gU=; fh=Q+IcUsh4l2m3701WfbZB/nnC77ysPD3LXNP6vpNjdZQ=; b=tCluchLAVHdI8ZzNFg4d6JEiALWCPhfHhKgQz21aN+lSTCjoKaTUDwXybXteme4D9Z TOFRj7o9UAxmNkzyvzXWr0FvFgXLCe/R7jkzamZOWthjsULxTYFBhOJ99V3Q/I6LXKvy /czJJR6WQ5iUpVtJxSTKFqtxjiVwkcZ74Ty7C/qcrqp4ALq9BgiXA4Ypk7cnhPm5M32i y4s1hn1P/gVmojxRu8k89Xj6TG8nQ8iqcrtVSPVKmTO9mp2ol8XMBXTd+uyvpJom+Ovw wWe3hEPEyq5OdLfPFN2Cb4YeBu4anWsmOjQDyLpjpgqBIc6qTPjaDNBqO9iqBZ1h2h+N ik3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LUinvacZ; spf=pass (google.com: domain of linux-kernel+bounces-3298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3298-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n12-20020a65450c000000b005c67bf38064si17004490pgq.354.2023.12.18.02.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 02:10:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LUinvacZ; spf=pass (google.com: domain of linux-kernel+bounces-3298-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3298-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D8E9282F2B for ; Mon, 18 Dec 2023 10:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2051713AC3; Mon, 18 Dec 2023 10:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="LUinvacZ" X-Original-To: linux-kernel@vger.kernel.org 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 B536214F78; Mon, 18 Dec 2023 10:10:32 +0000 (UTC) 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-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=+atTE69qUF4qmAtBOv2QlTxSSQnSgQ2ejCWr//9J2gU=; b=LUinvacZ+I/oBS1JF9SJ3GoiJu 3DlMzLFt3ljsLnEz3JgreIvMNv7MXaVYMG+3cy0ZcFOthBu4lx56aFOI+VCqvQlyQAJNiSi39f9Ty LIBpHbnLiRjBHnrPFLvQ7OHJb/jGVonHP7rvUbyB/17qEzcX4v+YdLI6RJiJS4f++52k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rFAZx-003ESu-IU; Mon, 18 Dec 2023 11:10:29 +0100 Date: Mon, 18 Dec 2023 11:10:29 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?iso-8859-1?Q?Beh=FAn?= , Piergiorgio Beruto , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese Subject: Re: [PATCH net-next v4 13/13] Documentation: networking: document phy_link_topology Message-ID: <32461e61-b518-4ecc-bf51-7d22f8580212@lunn.ch> References: <20231215171237.1152563-1-maxime.chevallier@bootlin.com> <20231215171237.1152563-14-maxime.chevallier@bootlin.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20231215171237.1152563-14-maxime.chevallier@bootlin.com> > +An Ethernet Interface from userspace's poing of view is nothing but a point > +:c:type:`struct net_device `, which exposes configuration options > +trough the legacy ioctls and the ethool netlink commands. The base assumption through > +when designing these configuration channels were that the link looked > +something like this :: > + > + +-----------------------+ +----------+ +--------------+ > + | Ethernet Controller / | | Ethernet | | Connector / | > + | MAC | ------ | PHY | ---- | Port | ---... to LP > + +-----------------------+ +----------+ +--------------+ > + struct net_device struct phy_device > + > +Commands that needs to configure the PHY will go through the net_device.phydev > +field to reach the PHY and perform the relevant configuration. > + > +This assumption falls appart in more complex topologies that can arise when, apart. Andrew