From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6F3B3E57F for ; Wed, 26 Jul 2023 16:08:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD0ABC433C8; Wed, 26 Jul 2023 16:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690387694; bh=bqpi2yisVpft8RVYJS4GnXOEF4ZISCBiQTTjOYYt6iM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Bz8ytEM3Ku/GqEICHRxOPvkR13tKR3iRgyknpuqXY+NU9ztetkFCRRgyfgCHdv7Tv FcZi8WTj9fOQxyVT7UsYXqMZ404SGESO9xp2SHFQdqt/H/NspFQHwhZuFBwfFt533R gwim+rcuainbJAQDvNMe4NqUoY/WJcDt4545FuanyVpzOeosEq1gnfvuDDcpPpukms 3Kmx56Pl/bD0WMMnG/0GCvhmgEDztc8a+qZ2BDqJGQNSveOrFe/njuXVQM3+TDVgZF J8dDHqrDy6SN4f3kSErlGTrYxwyIInOmsvgBjl1ylXze2wMbua9lL6gyLCRYMQyLNg V/nI9KhWkbMZA== Date: Wed, 26 Jul 2023 09:08:12 -0700 From: Jakub Kicinski To: Andrew Lunn Cc: "mengyuanlou@net-swift.com" , "Russell King (Oracle)" , Simon Horman , netdev@vger.kernel.org, "David S. Miller" , Paolo Abeni , Eric Dumazet , Heiner Kallweit Subject: Re: [PATCH net-next 2/2] net: phy: add keep_data_connection to struct phydev Message-ID: <20230726090812.7ff5af72@kernel.org> In-Reply-To: <21770a39-a0f4-485c-b6d1-3fd250536159@lunn.ch> References: <20230724092544.73531-1-mengyuanlou@net-swift.com> <20207E0578DCE44C+20230724092544.73531-3-mengyuanlou@net-swift.com> <4B0F6878-3ABF-4F99-8CE3-F16608583EB4@net-swift.com> <21770a39-a0f4-485c-b6d1-3fd250536159@lunn.ch> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sorry for chiming in, hopefully the comments are helpful.. On Wed, 26 Jul 2023 10:54:25 +0200 Andrew Lunn wrote: > As far as i understand it, the host MAC is actually a switch, with the > BMC connected to the second port of the switch. Not a learning switch (usually, sigh), but yes. > Does the BMC care about the PHY status? > Does it need to know about link status? Yes, NIC sends link state notifications over the NCSI "link?" (which is a separate RGMII?/RMII from NIC to the BMC). BMC can select which "channel" (NIC port) it uses based on PHY status. > Does the NCSI core on the host need to know about the PHY? There is no NCSI core on the host.. Hosts are currently completely oblivious to NCSI. The NCSI we have in tree is for the BMC, Linux running on the BMC (e.g. OpenBMC). > You might want to take a step back and think about this in general. Do > we need to extend the phylink core to support NCSI? Do we need an API > for NCSI? Today it's mostly configured via "BIOS". But I think letting user know that the link is shared with NCSI would be useful. Last week someone was asking me why a certain NIC is "weird and shuts down its PHY when ifdown'ed". I'm guessing some sysadmins may be so used to NCSI keeping links up they come to expect it, without understanding why it happens :(