Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp109088rdb; Thu, 25 Jan 2024 09:32:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtzwrBDhxrUZumlUu40UN6s3QQcIIpUBGU7LGY/5PvOUI5zGy6+FRyguithlDEKAq61KhX X-Received: by 2002:a17:90a:e543:b0:28d:dbe8:aa6c with SMTP id ei3-20020a17090ae54300b0028ddbe8aa6cmr1164363pjb.36.1706203975216; Thu, 25 Jan 2024 09:32:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706203975; cv=pass; d=google.com; s=arc-20160816; b=m6jgfXVC+zlMF8iK6Mc6M17E87Ey13Dn3yu59lJDBu3X5JOicDWI6q5uuWttoYUywV oF2uj//SnvmzFNt5dmff4l0v8cofcAyEWdRSZ+GDiJ5twmi/IVFyuLcEKJPg/Gk7IFew nIha+UmGzEK3r62tyPKqunJfki7SiOa1Ern9zr8HuSPlRgZcZ8Rej9aoX8iobFzANyMh KKpOwDXEq0X+yYYNdUL3FbPI/gNJQfLXhoaufyTHTmchh5Sov7AHxxIs1opGRthw6aEw Ask4qXGXstDB89OtKc72qC+aDH/KIT9Y5kd8jM/wdTEknvkr6+m+xOLOILVhLa9ZYL9b DLpw== ARC-Message-Signature: i=2; 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=VopbMPXtrem8Fa4qu37vThYAtxXb9VUpg0EXsR2tYnY=; fh=N9ulsK78wa4EskC63McGrAulufPecEQliAWwkNP4nD4=; b=E/wE9T12eZIN/VPdWa6LsjtoxRy7Vnu/3i3kD4kNkA2vOcaBedW58ibSOLvKlGU/4o xeLt8RB049rzGOD2JientmDP/qITiuc6ENJXduqGIgP2H48JS9cnKiVPt05KxGsM7bMn eky0AA2Y/sXDkMaBED1NAhkuKiDLjDgo7Q5LKTRpjSsmR5LoKX1Y35R+6QYijqjWtfIN IUlkxgSxbuw+KIBbeFpxOPAIuugcuCl9zC2Nl71vIyBwtaWeEAwA7NZK2/eIEAgA16Mt 0OwgvJk/aItmJZMnhcIPUeQ2wQSjIfTHszpyfgfvEiU4Xr9itJNdWUb3n4uZR61+6koH /aAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i4kTSfJW; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-39012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id dw17-20020a17090b095100b00290036f062dsi1609915pjb.178.2024.01.25.09.32.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:32:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i4kTSfJW; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-39012-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39012-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EF182B2401B for ; Thu, 25 Jan 2024 17:15:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC3AB13475A; Thu, 25 Jan 2024 17:10:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="i4kTSfJW" 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 9D75B134740; Thu, 25 Jan 2024 17:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202621; cv=none; b=YDl2nuZmsMlp9qUYRRC2bM1KSvVLqrTcD60kHuh2tw5Lk1dxwHDRR8Qx0cgX4wPuPO9jeOgILM94j6RtuhkKiIbKh0Ah1i57gQyLOePlo7NvlZ4FLefac2izpN3F/8OZPN3iSKfL8tgFvYMVgEm1ZAsk8MeWjEuhCIq7KMTuLHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202621; c=relaxed/simple; bh=hoy6NzodINKskmf/TeFa/RWzHNCzvbvzMc/mq5Qsavw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QIB2Y2ZsdSYrsizxKuoub11CDqdQbC4wiRKMCnn8gavVUr0HeVFg4EXOEjWfEgb0MXea0qZ9JIe06FOtHT7nVZBoHpyi5ohePA2FyE1i/fvJFTKSOkZjpEF9oZ04Rzx+1nZj5vKwmHXr5N6gMRWjiFmn4MG1kTLb/blYEYB4yDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=i4kTSfJW; arc=none smtp.client-ip=156.67.10.101 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=VopbMPXtrem8Fa4qu37vThYAtxXb9VUpg0EXsR2tYnY=; b=i4kTSfJWYIWI1vHQmBwECBZ063 oT9tMDdbMVKUDVsAVn/39mz89nBrdCpqoXp2EAky9FnHoTg+POsDzDhDQSuXKM1rzZ0KrceUq/u1t gc2no9wb1uuUfQhcifk+yX/a3rPO9fn5m1Q0MejGFUczeB7PgEsozJosPFtrEZ8F5VS4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rT3F1-0066Y1-7d; Thu, 25 Jan 2024 18:10:15 +0100 Date: Thu, 25 Jan 2024 18:10:15 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: Jakub Kicinski , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, 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 , Simon Horman Subject: Re: [PATCH net-next v5 07/13] net: ethtool: Introduce a command to list PHYs on an interface Message-ID: References: <20231221180047.1924733-1-maxime.chevallier@bootlin.com> <20231221180047.1924733-8-maxime.chevallier@bootlin.com> <20240104153401.08ff9809@kernel.org> <20240105104311.03a35622@device-28.home> <2c955f94-7c95-4f66-b739-f0967ec9c171@lunn.ch> <20240124145033.1c711fd1@device-28.home> <1092441f-c347-4f61-8405-7cc8a07d5850@lunn.ch> <20240125092225.45cdaa09@device-28.home> 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: <20240125092225.45cdaa09@device-28.home> > I do face a problem with fixed_phy though now that I've played around > with it. As fixed_phys share the same global MDIO bus, what can happen > is that netdevsim-registered PHYs can starve the dummy MDIO bus by > exhausting all 32 mdio addresses, preventing real interfaces from > getting their own fixed-phy instance. > > I'll probably register a dedicated mdio bus per netdevsim (or even > per-phy, so that we can imagine controling the returned register > values), let's see how it goes. I can see it being a problem, but how theoretical is it? Anything using phylink does not need a fixed-link device, its just MAC drivers making use of phylib. Its also only typically used with MACs connected to switches, and you tend not to have too many of them on a machine. And lastly, netdevsim is only really used for testing, and i guess most tests run either on a desktop or server like machine which does not have switches, probably does not even make use phylib, or the tests are run in a VM which does not even have any PHYs, fixed or not. So i'm wondering how much effort should be put into this, or should the time be spent on other things? Andrew