🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12202

Re: [PATCH net v1 1/1] net: phylink: keep initial advertising settings

#12202
From: Andrew Lunn
Date: Fri, 06 Nov 2026 13:51
30 lines
9221 bytes
On Wed, Nov 04, 2026 at 01:55:09PM +0100, Thilo Zirnstein wrote:
> If the net device is phylink based,
> consists of a mac with a phy connected and the
> mac driver does add the phy while the ndo_open callback,
> initial advertising settings of the link may be overwritten
> during phylink_bringup_phy.
> 
> The mode of action is as follows:
> 
> * The link was not up yet - no phy connected
> * the user configures the advertisement of the interface
> * the mac driver delegates the call to phylink_ethtool_ksettings_set
>     * here we are not configuring the phy - it does not exist yet

If it does not exist, it is not possible to validate the user request
is actually supported by the PHY.

> * the user set up the interface
> * the mac drivers calls phylink_connect_phy

At this point, is the previously configured value sanitised by what
the PHY can actually do?

Take the example of a MAC which can do up to 2500BaseX, but it is
connected to a PHY which only supports SGMII. Before up, the user
could request 2.5GBaseT, but at admin up that needs to be reduced down
to 1G.

	Andrew
Technical Details
Message-ID: <fb28453b-9df6-49a1-8c01-543e7bfceeab@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358022-linux-kernel-netdev=dewy.ru
References: <20261104125509.3221743-1-thi.zirnstein@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358022-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v1 1/1] net: phylink: keep initial advertising
 settings
Date: Fri, 6 Nov 2026 14:51:18 +0100
Organization: Usenet Network
Message-ID: <fb28453b-9df6-49a1-8c01-543e7bfceeab@lunn.ch>
References: <20261104125509.3221743-1-thi.zirnstein@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3894005"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6MVCGb8N4IBv0bhSzeHXRAR+x9M= sha256:WZo4vDFcLSsvAucwDJ09R+Bq1O2AyfQqhFWPsPmQlPI=
	sha1:hst4EZ5YgM9+Gg1Ufk0RL0lt0yU= sha256:5vKXOjs7XNeuM/S0bFkUlG8jKJhvS4Eso197V9Naj60=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BACF2113274; Fri,  6 Nov 2026 16:59:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.801
X-Spam-Status: No, score=-2.801 tagged_above=-9999 required=6.31
	tests=[AD_PREFS=0.25, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id hya_bYJD6G6p;
	Fri,  6 Nov 2026 16:59:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-358022-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 86D2E113271; Fri,  6 Nov 2026 16:59:39 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 7444527DC1; Fri,  6 Nov 2026 13:51:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793973091;
	b=Gd8DVRXDcn1ACX0MaGOG4h8AGwm6i/dj3OrkNbHBx/oFcjDayQCL95M/Um0YiQ40Qa6a
	 8lPW92YDt6R3UO1cEAsuKH7BKwt1ha9kJPX2RCg9LMEUNcYas5OGW3kBB4ncaaYgF4sr+
	 CJ9JMXC/YnLpoda37GJVJnBm63zJIT+dMl9uRQSjpAB9F12BBpOMnQfPRNP8XqASvFEwd
	 FX6oPGphnwMz/A5BElkejL/IxympQEFKoo/rdHPF8BAIs/sfqr6iCRLSTH6POs+365mJA
	 VhFIpfc71s2hK8o3K5BgdCVHayvWbOPmaaPw3S/xxkFKFyAk9gQGsnNf8eXiaaY6xfg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793973091;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=qeICje2YNdfsBQRYsbfVR7niizvYHczhtYbtuMr6CdQ=;
	b=IUfIMtJUiIoaRPwNee/VbtX1zeguRV9Dnz4xuZ0VxglLvEjJhNIT5mVZriBH1kgp4akg
	 2j1CtRty+piYzlv0xCJ6KK2WcU93TB4TtvfZ1PjHC4X/vYTDRMn3hGue3zJnvv+fcTkSj
	 NZw+EWw1vkVPI8mlY/T8WsHfofvkUW7zxaySBG3X5HYjRgQY/aq3f97gkoBwoQP49EUi+
	 yF9HlZEmRkMD1rD9kaKO3HeCmfglEpygY7AUJs2G31o2dkMKLsROTD9LIJBytioRgoFjO
	 qof1PbOSTwx+3viypQjT80NxoWX/sk+wi/TtbHOyKgnItzDfV2Pkaw42J+RzsbZgRHQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=aV4csmfn;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D94606A335;
	Fri,  6 Nov 2026 13:51:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=aV4csmfn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793973086;
	b=EpLg5nB207g2OiG6n8WQB539UDHHMye9HFFGE+1fCZu9DQFUCOX5+kjuJ7ClkQ27fKQn
	 C17S/wjiHxEKJ/NCH2LnByqRWJ75HirFmiCtFfIvEx6jKQhrpUqTOvHz+HXp2YkhWDV8y
	 CF+pr21GhPULGna1njO/dmPELB8tSJNe3gc+Sebtdzz1WlBurLnc3TvN20KQSKzKI63KB
	 vr+DnGjxHjC0A+IXLGPJetkU+wNU6NZWKyjwYlIrMKqG40WQwe3GBsy/GS8IpcsgGzwHF
	 8ebn0AdGI2NCj22tOrvyLT+cAAPPQnheOuhCjp4PbUVKyRH8tWZEvLpPoIUAY1G8lNg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793973086;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=qeICje2YNdfsBQRYsbfVR7niizvYHczhtYbtuMr6CdQ=;
	b=v+m4E/71P+AsC95DGpyw0yBEzwucX90njHuTapWrRCERQegdkjaXLpJ4RduurbE9yPZ4
	 pRCV7vG2NdaQRE5uIamwmtZ9Ope1sQkXX35LI1gQ7p0t1UgA9f7GG7PD89EvcPamqUJWJ
	 RpaXhfrRHosJhwfBNNcRhdMk8eRgvZ6JzK8B+88wvogKYR2cm/56OmGE1MgBvnOxGvcuk
	 aL3rDp5b6sjeyM75tFCPbeXe4OJ1EA0+VjGC0SsGBfRX1ngKfKT0WRQmg+GWD1QF3xZEX
	 6Vq5qLZ5iC1ZPoBiASxfL+LeW0tXgnuu6pAm6W/Vct3T5vJhcaFhRyQMYlfLLx6mvSg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=aV4csmfn;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79365606A326;
	Fri,  6 Nov 2026 13:51:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 79365606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-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=qeICje2YNdfsBQRYsbfVR7niizvYHczhtYbtuMr6CdQ=; b=aV4csmfnKuakOW6TFXoLC9Ktu0
	bIBLZe+STOBIT5HyekpVuWK+ge/O30bQ4Mn/eTJN2e7E8YtVPyRBBSaNF56VvujedbFIYnf+GnNmu
	Com3q+B15IT5KrR6rFA1UrK3HW+eGmCzA4zI0CgJbZTyfafsmyvnK4IniSYjjeG8JLBU=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xPKLe-00EmL2-Og; Fri, 06 Nov 2026 14:51:18 +0100
X-Cc: linux@armlinux.org.uk, hkallweit1@gmail.com, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261104125509.3221743-1-thi.zirnstein@gmail.com>