🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17166

Re: [PATCH net-next v2 2/5] net: rnpgbe: Report link settings through ethtool

#17166
From: Andrew Lunn
Date: Mon, 16 Nov 2026 13:18
12 lines
8720 bytes
> link, speed, duplex and mdix are updated asynchronously by
> the mailbox event handler, outside RTNL. link_lock protects these updates
> and provides a consistent snapshot in the getter.

O.K, thanks for the explanation.

I removed too much context, so i cannot see here. What about
lp_advertising? That also comes from the firmware, reported on link up
when autoneg completes.

	Andrew
Technical Details
Message-ID: <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364334-linux-kernel-netdev=dewy.ru
References: <BD205A7832D36E7D+20261116030917.1329989-1-dong100@mucse.com> <66AFF2810AB647C8+20261116031020.1330219-1-dong100@mucse.com> <d7351f56-d4fa-4ba0-a0c6-c7bdf7aac460@lunn.ch> <2207C8DCDD49F5EE+20261116044737.GA1342898@nic-Precision-5820-Tower>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364334-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 2/5] net: rnpgbe: Report link settings
 through ethtool
Date: Mon, 16 Nov 2026 14:18:28 +0100
Organization: Usenet Network
Message-ID: <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch>
References: <BD205A7832D36E7D+20261116030917.1329989-1-dong100@mucse.com>
 <66AFF2810AB647C8+20261116031020.1330219-1-dong100@mucse.com>
 <d7351f56-d4fa-4ba0-a0c6-c7bdf7aac460@lunn.ch>
 <2207C8DCDD49F5EE+20261116044737.GA1342898@nic-Precision-5820-Tower>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2070386"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jBWbWK5v6+jEYk7Q2GUC91v39eo= sha256:oEqf+fUnD4IMAMXiaCvl0qrXWgGKceoFhhU8odkFy5w=
	sha1:7kSzR5t+8HUv//KnfFy7+VZ1ySk= sha256:meacw1MBlR9oUoZFVX42KdkcCcSFAbUDytck4Jfq2sA=
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 224D4114C1E; Mon, 16 Nov 2026 16:18:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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 rws7XrmxCe5v;
	Mon, 16 Nov 2026 16:18:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-364334-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 76DC5114C1B; Mon, 16 Nov 2026 16:18:40 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 11A83601FDA; Mon, 16 Nov 2026 13:18:40 +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=1794835118;
	b=naXuRSegGY/vxnEpNqzZhMVkKiwIJEp1ILBy999i0h9cngYIuvynkyKJUY3W8NTXAQmf
	 rLM4t15GrZ+m5t2vf1jh2Q2DE+A8h2KiKDjf/PzEPasQYZoHZQB+QGzZahEjIoblRXCCy
	 NxU3uddoU2rPLNyDp5Myf2ZkVxnbRyAmr/wxsYNZGgvIR3wFVvSiTlRG80VLIuAyxKHrL
	 ZSkUrRf6G5G8sqbO89gFi/9I2LyLI+xzvteNzWIAVLBNabo9K7FX6F12b68bc7Uc+o15T
	 f247y0kXuKku5T9mb7hpuMmgz7rHAjXDibmRnsTlK2iOT8JZ4HJgdguMebmzoj+BXFg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794835118;
	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=p+rWhgjtOn/Lo10hRDaMGIqFyQOaUCAXo3KMace5rKk=;
	b=JNoClFqqsbaQxjQRsUbZ+KrZS4IRwsVmQcb7hNMcy5Ae/IN2fQtSyM8+r7wggRrq0mwW
	 7DTqhUo6CMNH605UsuGiyS9PNw8bdvL1XruegJ622XO5OhkrFJEEbJIqm9G9UJA8uFGzf
	 l5w5+i5JQ0Fu117kA4GTli4lKZRR6/+PJJAdNorb1yYvbf+egW3cO5OT1rSHFEuPJU+WF
	 rCyIO53qQAFFlkcDJRV9gKjpE3nHeg+PnKeTeGn2sZJgk/5QwmuVWTE9kW3LYFr5h48Tv
	 qSAt2wnmbS9cD/hExrQamrvqWrHVNtNFNY11yizyNj4VnzxLwDUSOjXCFNI0KKBLycw==
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=XWpwkv0I;
	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 F28AC606A33B;
	Mon, 16 Nov 2026 13:18:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=XWpwkv0I
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=1794835117;
	b=0phufADTjXiijAeDbAnhz8ThJMxe0akSYdRXU9Oe+9cZCdj6raPXLIcoKnyJR/xcdj5+
	 ZmFw6PH7NjDf6lUfvUq+5piE+v/LF6Btr3V1MyFjY2DTRAPo+KCEfpqFuDdG40WWf8vgu
	 3P2jsy7uTTqqgTfsq7Ogh6wAH4XLoZtVjf8ADRLuFEWCJJm/C6kaeCINxFD1kvagu6DQx
	 rTlXUHpyzNnseEpBYuuhDLwY/vRebcKFjps0LGuPYOpYdqMOs6yrjV9223UaKj3EHqLu4
	 +ODjUav2GZnF1W7Vr5MJ229qIKICz8vdx03UD7gYIgix1wti6BIJ1aPpL5hfJdFMWjw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794835117;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=p+rWhgjtOn/Lo10hRDaMGIqFyQOaUCAXo3KMace5rKk=;
	b=I7W6zz05szTsc7cQ5xBGybLyJ1feMqkq3b/6BrbaFYM7siWMp3wVsWknMOIR9zXOlmjw
	 35/yYKCn2A3SRCxF8v3kicXxyexUpXkjkYL7jHiL28bPAeeXg/rLrQ62ULyOju0X6FDvP
	 Add4ccLWWD8nobRpaIG2efgA427l4f6VKvlLKTrbirtHHiIzUo4lXvNqjz6cNkj/onWUo
	 LC0HyZbB/eHylRgS4prNoXrq1N17j4BNfX4VcqEYdOoD3nKByqs7y4kVa+dHW66xsU739
	 LGG53QzbfK36tGMOInv0GSWdI5LftU/mVKQupsBDWnc06LYjjs01gvZCf03oFaZW/QA==
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=XWpwkv0I;
	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 D089B606A31C;
	Mon, 16 Nov 2026 13:18:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D089B606A31C
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=p+rWhgjtOn/Lo10hRDaMGIqFyQOaUCAXo3KMace5rKk=; b=XWpwkv0IJhb1znKdhAQPG6jNLO
	0IdDI+qY6hnlaGmee7rX6zV7Uh6ZekOuOBbRvZLF8etn/fB+UDuFfmk9RW1oAHHktT1kuEAn4gV9I
	Rr6scnvRq3jsbFgE6GF6E5TE+rLSVcPIC53TnClHGYgMPgZMljfvCMo138n2AtB+mYj4=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xSwbM-00Gv1o-R0; Mon, 16 Nov 2026 14:18:28 +0100
X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	yaojun@mucse.com
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: <2207C8DCDD49F5EE+20261116044737.GA1342898@nic-Precision-5820-Tower>