Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp293030rdb; Wed, 14 Feb 2024 23:25:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGPKvleVSYDQXvRYtxcmzlxH9NMBOnqw4r6gIu3wIZs84boL2CEKiBEE5uN+cVeUynhHcshh1uU6P+/sRfzS28M1hWXasFM+TQSS6r3Q== X-Google-Smtp-Source: AGHT+IGjeZ4maUD6E4+BQb/w+IayCfRtZeAdQyOARPQ771R37Lqk1/3/VRkdYxEDOl0hbiLWljNK X-Received: by 2002:a17:903:443:b0:1d9:63ac:f54a with SMTP id iw3-20020a170903044300b001d963acf54amr884726plb.36.1707981932115; Wed, 14 Feb 2024 23:25:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707981932; cv=pass; d=google.com; s=arc-20160816; b=ksJcAELEdPh7/X5BPweTPnuBpvksPwe4WQaYstoAoP/DMfbnvAPhBjNtCxywGFtQSi xcHzSidcG09xZUmDzPkzyWFxBiEb7XyQqnrdj37y1uatC7wGbz+GH0+9IsA1/5DjsOi5 5zMZmFwTLr6PuHPHA4ZJ6sRN7Y5KAPomagQBPgieevcQAWqARWqxsJoj8s/gmVpL08kT jbvJS48xBvQTXZ7EtWAA3WjC7Kpu7IW53AHmtPOU/ugPp0yCgroezIqxoU4lMRK9eFxF TTRuACrxaxyQCH7SCMo3eOy0SLETrwY+59Kozqy3++FDOZwr2mBBeBuJyBi/50Ewa0bv e/Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=qieT2V8qh8j5k3DSAaJeE/xzPVOTH5+a2qFckHpBsi0=; fh=B1fINRdgbXQKplppqeX2QQEzYOURf1JO3GeYHigneKo=; b=gc8yNTMlABhC3JFJpguQT5x4JsK/seUxxz8moEu2Lb6BGTKl3oM74oLxdBDHRz3qtn Y7Yo2iE05pRpBvl+sugTwOyFAFZnFhAi8uQYBx5NTxQ1PKHTuGKzoZsUZMyNASfCpduc bCycHH6s99c0tzV6+IhqSe+z+OXlgSf3Lk7UjKbyK9QfmY5n8awB04n14QcIXFDDyGRI rGddOABTkiLX5FN4ogR8OHoc0rtmbiyr8Cib0TB668qcvqwtMuOQNySbinjs2F/8PSLm VvKsL7T1BApI0BkTYyQH4z30Y/PJFyuRV4vfL0gc7QPuZ9A00nFqtTNEXgHlehDlbnUG Rsaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PlrBizhF; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-66354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k2-20020a170902760200b001db5b4036fesi671696pll.108.2024.02.14.23.25.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 23:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PlrBizhF; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-66354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 CBA41284830 for ; Thu, 15 Feb 2024 07:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3E8BDDD9; Thu, 15 Feb 2024 07:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="PlrBizhF" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 E5EBCDDAE; Thu, 15 Feb 2024 07:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707981591; cv=none; b=fyhow+fk8O5ysGl9MbyrEMd43dLlsaRF2QPy/KrseafAwIw/IxgyG6bWnTG0VGLEgL+QiOxLQmHUaJkNteETHFYrINFHg74dhCYOBcGPJ+LTV+RnipO3caL+O3+CIAw1ivJhXRmIC/HlyHVsUQp9Ukb9XbteaFiQNdxWQwCEMXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707981591; c=relaxed/simple; bh=nQlOf/Q/5O5SukLZ6rtBuODtxXePZxAGd0xexsFVcJ8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QqTYIoKSFUDj8BSbVkcAn2/aIOARwrZRbh2ibaROnnMYKhBbvcuxXRL162yGvFGr10O9bqn2EvHxMfuSPI0+prTg9WdkHuTDBc11/jczDOOdtyG6Fv0FIxg0b3Ny4PCuuvh3jX03elkqbIiM33QQ/tZcbKP9gQZkLGnYJwwHWIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=PlrBizhF; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id B02D61C0005; Thu, 15 Feb 2024 07:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707981584; 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=qieT2V8qh8j5k3DSAaJeE/xzPVOTH5+a2qFckHpBsi0=; b=PlrBizhFKr9GmYlg/RJutFVOSydG0cdSZgtPSHCFs+RN1pslgbfi80oFHcWMUCPZqn8fdF HlA1V9dBWl8ix+45xjJQzdwknFsTWhG7w+Eg18N+WWXDsVu6TkRG+FCv2+OCpEe/9erJel Gi6Vb+37cespGAogm091ZaKtZ2cNEWlKIBOJ/7V7w7MPPP61KMR4KbjoWPkSJff3B+gBJw ccYlUHVgEr23GVTD6d25QsdkM4wL89AyI9WEroVoE5h1QHVUXzXYwvhUXZGG8YivukJVD6 vZRzxyhk+ZzBRsrDAHjVTE3ejT/Mkf7YnNmiDAo0HM/LxQd/F/YmXPoBX+jcuQ== Date: Thu, 15 Feb 2024 08:19:39 +0100 From: Maxime Chevallier To: Jakub Kicinski Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v7 00/13] Introduce PHY listing and link_topology tracking Message-ID: <20240215081939.1df19818@device-28.home> In-Reply-To: <20240214165902.55bf3a04@kernel.org> References: <20240213150431.1796171-1-maxime.chevallier@bootlin.com> <20240214165902.55bf3a04@kernel.org> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hi Jakub, On Wed, 14 Feb 2024 16:59:02 -0800 Jakub Kicinski wrote: > On Tue, 13 Feb 2024 16:04:17 +0100 Maxime Chevallier wrote: > > This is V7 for the link topology addition, allowing to track all PHYs > > that are linked to netdevices. > > > > The main change in V7 is the protection of the main internal API > > entrypoints (link_topo_init/cleanup, link_topo_add/del_phy) by > > IS_REACHABLE(CONFIG_PHYLIB). > > > > That's restrictive, but it looks difficult to do otherwise while still keep the > > data structure opaque and not add dependency clutter with PHYLIB. > > > > As you can tell, I'm unsure about this, so please don't hesitate to > > comment on that part :) > > > > The other changes are very minor, the only one is a call to netdev_put > > in the .done() netlink callback. > > > > As a remainder, here's what the PHY listings would look like : > > - eth0 has a 88x3310 acting as media converter, and an SFP module with > > an embedded 88e1111 PHY > > - eth2 has a 88e1510 PHY > > Needs a rebase, core has been busy lately: Arg, I'll send a rebased version, sorry about that Best regards, Maxime