🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17566

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

#17566
From: Yibo Dong
Date: Tue, 17 Nov 2026 01:49
26 lines
10053 bytes
On Mon, Nov 16, 2026 at 02:18:28PM +0100, Andrew Lunn wrote:
> > 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.
> 
The firmware manages autonegotiation and reports the negotiated speed
and duplex through mailbox link events. However, the current mailbox
interface does not expose the link partner's advertisement bitmap.

Therefore, lp_advertising is currently left zero to indicate that this
information is unknown to the driver.

If reporting lp_advertising is must, we would need to add a new
firmware mailbox command to retrieve the link partner's advertisement,
or add lp_advertising to link-event mbx alongwith link, speed and
duplex. Of course, it should be wthin the mucse->link_lock.
> 	Andrew
> 
Thanks for you feedback.
Technical Details
Message-ID: <236B4E2337BC768E+20261117014902.GA205295@nic-Precision-5820-Tower>
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-364886-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> <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch>

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-364886-linux-kernel-netdev=dewy.ru
From: dong100@mucse.com (Yibo Dong)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 2/5] net: rnpgbe: Report link settings
 through ethtool
Date: Tue, 17 Nov 2026 09:49:02 +0800
Organization: Usenet Network
Message-ID: <236B4E2337BC768E+20261117014902.GA205295@nic-Precision-5820-Tower>
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>
 <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2215805"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:C1xlC1O8ItpKMTA5LyWlU/wSCdQ= sha256:MZKUSuMPL9T0uRh5Ln5rzVUWDWGmmGBMuz+UG7HuT1o=
	sha1:E33gclSoliZDO6gw9NQdmf6Hx5I= sha256:Hqgk1AlYe3Gp3nGLop1Fod/GrVEFvfIxCMJLaMd+xx4=
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 B5397114E0C; Tue, 17 Nov 2026 04:50:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=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-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 mJjzhS5jdSnF;
	Tue, 17 Nov 2026 04:50:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364886-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mucse.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 30FB8114E07; Tue, 17 Nov 2026 04:50:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id F07922AD77; Tue, 17 Nov 2026 01:50:22 +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=1794880221;
	b=die8/EXiND9vdqSsnKRUP4ysI4O0w5aQokRMblOTkhNdmnV58yubk6q3ZdD9LdwjEmSb
	 bje/W+7EP1BN6QPr+hyQCDa7gzGmGJUXDZm+ra/DZsJa0TkzpMHKTjaFx5dg3Odyq6xxI
	 J/sb7A6jUM/2CtsZMyKqUJd6Cr/LhwiUYEqw63Y0M9TB+Ly4l84YgbEsOHerv52mPgJou
	 /k2jxUiWFE6nTh9YZU2SJyG6D7UN3XfP6wcOxXyCY7p7LEN6bnruIKyltZ4YAGlQAE1P2
	 egPOcLAMI5HfO0cF4m92I4o5/Zu1xKmZK+fU71DWH19S/Yy44Any7iMqDwo8Pyt4mhQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794880221;
	h=X-Original-To:Received:DMARC-Filter:X-QQ-mid:X-QQ-Originating-IP:
	 Received:X-QQ-SSF:X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt: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:
	 X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:X-QQ-XMRINFO:X-QQ-RECHKSPAM;
	bh=q6cBIoF+VYU/H2S1exF0xL+Pb0tknVTGpQy70pOSy2E=;
	b=aQEOn8lEhR1Ojc6XUOnUGp7BmPrIqiY7HdyciOKSWhm+m+v6x4qYHcVTRKLs4Bm4TM/O
	 m4/eb5Oq7GuFovJiNLm9TE8+4Nru216Km4tuUYzVaiIXX9yJsET3cTrGsJE4cZ9Tg5m4D
	 yT2NfvBBvBY1yxw778rdS0yJa+CPpXgSodsklu7xO0pNzdthkTzT0MyQoB39RMcZPGm7W
	 i8NfVlA9L/BFOiZeGhD3nL6HqqTmzcbrW3QuINcGuMa2IH7FUn9Kvg2R+WlgnzvJojYid
	 OE90hmmVCeHmFfcU/E2rnwNJMpVBEmG1KMNfrdWPO8S6LuK7/l9BU62O0mjzPDuUvNA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=mucse.com;
	spf=pass smtp.mailfrom=mucse.com;
	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 ACDC9606A331;
	Tue, 17 Nov 2026 01:50:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.207.22.56
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794880221;
	b=blJeMRlhjCXhZ/6BvP7myzOZFqtrxwLlfNufP7aH0zgE1Nb2cLEIGeO0w4/pxQcsN2dg
	 FsMYuRjmIWWJhThEoLsT2kGVo+OW3V3DPUcImgLWz9GeLo/dEwOXsSbds3qRFgkF519As
	 3q31yQhdoOga1IxmYIILalQGK0bLRfQCEAs/gekcYZZ6Leztxi9b+81fuRZKmus0fRL0w
	 jAUYMVQCA0Gvkd1UgI2Cl7E3IBojWoh5DP9CdJThNw4G8S7ngnVynFNpd7kNZwNhmnuJS
	 eCCTUQvbbzJ/7h2QDs9io3ii+/6jbFgrYy+RQ5rzSYI02stOQtpaTmlR6/hkN89h0kw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794880221;
	h=DMARC-Filter:X-QQ-mid:X-QQ-Originating-IP:Received:X-QQ-SSF:
	 X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-QQ-SENDSIZE:Feedback-ID:X-QQ-XMAILINFO:X-QQ-XMRINFO:
	 X-QQ-RECHKSPAM;
	bh=q6cBIoF+VYU/H2S1exF0xL+Pb0tknVTGpQy70pOSy2E=;
	b=Dwe78utYz67ZPsnlSkI25jCyAftp5P5cMXbXJLIwXjNfWomIbhnp4G5MESiehXN3s5kj
	 L7EP709UaW1WMlNhuere+VqbiXfdi0Aq6xcWLOpVRNbtUnk77ilxnZSchffBgGc3bGzA9
	 pGivBa8oSL/ZoWI4pCf2+Ld6WubnBs1K8lwtCvnHVAGdKhSDsZ3061UDCOvceDWCFKF+U
	 qeOcl2Kdr+INl3cvD7UlE75HlAKUvuQvtfCIoMaZxmDR9kHN2kjOuNzreSvR+ZN/6DOGg
	 k7kZaaI957HofV8+toKPdQ8glUXKtgKG8zQnLkJ4hnk1JktqN3zJmaQCM3lMiCzuTng==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=mucse.com;
	spf=pass smtp.mailfrom=mucse.com;
	arc=none smtp.remote-ip=54.207.22.56
X-Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B81B606A31C;
	Tue, 17 Nov 2026 01:50:15 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2B81B606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mucse.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mucse.com
X-QQ-mid: esmtpsz17t1794880144t72fc8369
X-QQ-Originating-IP: I5UnVHLRzFfkRoyF1LLlpDG6uK0vZAsjjHQTUOu2Qkw=
X-Received: from localhost ( [203.174.112.180])
	by bizesmtp.qq.com (ESMTP) with 
	id ; Tue, 17 Nov 2026 09:49:02 +0800 (CST)
X-QQ-SSF: 0000000000000000000000000000000
X-QQ-GoodBg: 0
X-BIZMAIL-ID: 14566835138318392029
X-EX-QQ-RecipientCnt: 10
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: <cf674063-6c6f-43f6-a18a-d7ed5bef8a5c@lunn.ch>
X-QQ-SENDSIZE: 520
X-Feedback-ID: esm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