🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #423

RE: [PATCH net v2 1/3] net: libwx: keep NGBE OCP cards MAC enabled

#423
From: Jiawen Wu
Date: Thu, 08 Oct 2026 02:19
16 lines
7521 bytes
On Wed, Sep 30, 2026 9:49 AM, Jakub Kicinski wrote:
> On Thu, 24 Sep 2026 10:01:47 +0800 Jiawen Wu wrote:
> >  		if (!(((wx->subsystem_device_id & WX_NCSI_MASK) == WX_NCSI_SUP) ||
> > -		      ((wx->subsystem_device_id & WX_WOL_MASK) == WX_WOL_SUP))) {
> > +		      ((wx->subsystem_device_id & WX_WOL_MASK) == WX_WOL_SUP) ||
> > +		      (wx->mac.type == wx_mac_em && (wx->subsystem_device_id & 0xFF) == 0x40))) {
> 
> This condition looks way too magical for upstream
> 
> Add some wx_has_ncsi() helper and add it there?
> At least then the meaning is clear, here it's next to WOL, no idea what
> it's supposed to mean.

I had planned to fix this issue temporarily, and unify to use 'wx->ncsi_enabled'
in a later net-next patch. Looks like I'm messing things up. I'll fix it all in V3.
Technical Details
Message-ID: <0eac01dd56cb$698a3d00$3c9eb700$@trustnetic.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342648-linux-kernel-netdev=dewy.ru
References: <20260924020149.30800-1-jiawenwu@trustnetic.com> <20260924020149.30800-2-jiawenwu@trustnetic.com> <20260929184852.364dd9e6@kernel.org>

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-342648-linux-kernel-netdev=dewy.ru
From: jiawenwu@trustnetic.com (Jiawen Wu)
Newsgroups: linux.kernel.netdev
Subject: RE: [PATCH net v2 1/3] net: libwx: keep NGBE OCP cards MAC enabled
Date: Thu, 8 Oct 2026 10:19:13 +0800
Organization: Usenet Network
Message-ID: <0eac01dd56cb$698a3d00$3c9eb700$@trustnetic.com>
References: <20260924020149.30800-1-jiawenwu@trustnetic.com>	<20260924020149.30800-2-jiawenwu@trustnetic.com> <20260929184852.364dd9e6@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="783745"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:a0lfRRdAss5xgrSbOZiIPbWVIQA= sha256:6aoPLN6Q+hVoiCev7DUX3Ho/tTPJh+K4ALoxDzTSov8=
	sha1:Hf+HywNWfX2HLQSiW43jfzAvjtA= sha256:T5GtMpaVRTs1CPdurE/5nQhsmu3m4ZhsOSBh7GgMy0I=
Content-Language: zh-cn
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 6A18710F2B2; Thu,  8 Oct 2026 05:19:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Status: No, score=-2.949 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, FROM_EXCESS_BASE64=0.001,
	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,
	UNPARSEABLE_RELAY=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 hq-AhQ6wZc3x;
	Thu,  8 Oct 2026 05:19:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342648-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=trustnetic.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 86B1110EC2D; Thu,  8 Oct 2026 05:19:46 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 8B4E226BB2; Thu,  8 Oct 2026 02:19:45 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DC7A2FD69D;
	Thu,  8 Oct 2026 02:19:45 +0000 (UTC)
X-Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.67.179])
	(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 D33773254BD
	for <netdev@vger.kernel.org>; Thu,  8 Oct 2026 02:19:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.67.179
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791425985; cv=none; b=ZbxVIgUgGXwNc7sZHdx+guH+OQGvlQs+wu0pT+hvqxSoQdxpz8wIGP3s9CaXqOJwBbZsFYfMxMWiQF2qgXwE+ImtCYAmq8Go6piE4hT4X7J9qMhlMllxxN+gQ4Nu+DjV+4P7pO+1WlTS0XNQpGQpSUACHk/k5bOTFhu7L3Wx7pI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791425985; c=relaxed/simple;
	bh=fc0KXrehR5Sr7rQ6yaeikP0wkAMjDA0pmbo3OuvWUE4=;
	h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:
	 MIME-Version:Content-Type; b=S3xPiJjjsB/vqHZFKGkj4cH3uAGbNtmI3xQl4ULor1X8X2oBlzecnsuzjQzWF5Z+WifCagQywH/SRm1l+6qB4tz1TQezm9nT69a+dD8ZyDHLlpgoVK1NtGqMUbEjTsJH4O1CnxbYm+D9HFu9ZGQR9fkc4rr79mJZ7dQXTTDpLD8=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com; spf=pass smtp.mailfrom=trustnetic.com; arc=none smtp.client-ip=114.132.67.179
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trustnetic.com
X-QQ-mid: tivesync9t1791425954t422328f7
X-Received: from 3DB253DBDE8942B29385B9DFB0B7E889 (jiawenwu@trustnetic.com [36.24.116.16])
X-QQ-SSF: 0000000000000000000000000000000
X-BIZMAIL-ID: 2444343616977155017
X-Cc: <netdev@vger.kernel.org>,
	"'Mengyuan Lou'" <mengyuanlou@net-swift.com>,
	"'Andrew Lunn'" <andrew+netdev@lunn.ch>,
	"'David S. Miller'" <davem@davemloft.net>,
	"'Eric Dumazet'" <edumazet@google.com>,
	"'Paolo Abeni'" <pabeni@redhat.com>,
	"'Jacob Keller'" <jacob.e.keller@intel.com>,
	"'Kees Cook'" <kees@kernel.org>,
	"'Chenguang Zhao'" <zhaochenguang@kylinos.cn>,
	"'Russell King \(Oracle\)'" <rmk+kernel@armlinux.org.uk>,
	"'Maciej Fijalkowski'" <maciej.fijalkowski@intel.com>,
	"'Simon Horman'" <horms@kernel.org>
X-In-Reply-To: <20260929184852.364dd9e6@kernel.org>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Mailer: Microsoft Outlook 16.0
X-Thread-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