🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10781

Re: [PATCH net-next 2/6] net: dsa: motorcomm: Rely on port isolation for CPU port

#10781
From: Andrew Lunn
Date: Wed, 04 Nov 2026 03:59
8 lines
8189 bytes
> -	ctrl = ~priv->cpu_ports_mask;
> -	res = yt921x_reg_write(priv, YT921X_PORTn_ISOLATION(port), ctrl);
> -	if (res)
> -		return res;
> +	if (!(BIT(port) & priv->cpu_ports_mask)) {

	if (!dsa_is_cpu_port(ds, port) ?
Technical Details
Message-ID: <84089fcc-0150-4464-970a-09400f3ec5ca@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-356175-linux-kernel-netdev=dewy.ru
References: <20261102155641.3682626-1-mmyangfl@gmail.com> <20261102155641.3682626-3-mmyangfl@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-356175-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 2/6] net: dsa: motorcomm: Rely on port isolation
 for CPU port
Date: Wed, 4 Nov 2026 04:59:05 +0100
Organization: Usenet Network
Message-ID: <84089fcc-0150-4464-970a-09400f3ec5ca@lunn.ch>
References: <20261102155641.3682626-1-mmyangfl@gmail.com>
 <20261102155641.3682626-3-mmyangfl@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3320929"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UZ17UQxKX38ajZo/+jYXCsKP0nc= sha256:1xai26D/1TXIrbK/oG4c8mVX9UB+gXWe/+zrEqaT0jA=
	sha1:zBk0uqcD1spogMpX7bz5QcdjFOA= sha256:AVZbphIQnay1q5lsJqAj8xvwmHNO+eeItOO7wDsroho=
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 6DA8F112AD6; Wed,  4 Nov 2026 07:00:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[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, URIBL_BLOCKED=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 e5IJi5diPOMt;
	Wed,  4 Nov 2026 07:00:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356175-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 112BC112ACA; Wed,  4 Nov 2026 07:00:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 169BC29E3F; Wed,  4 Nov 2026 03:59:31 +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=1793764770;
	b=revlHkif89WYyzgxtoVkAo/KVnAA+qKjzkx3At/5kAFo97zoG2YXJ79mOwlKCe8FScZM
	 5W0pj749qtANK2VFdyNUGQHe66kCyx3EIEOXGUIA0YBBDk8UKmOTX35kCHIgJMd8cNfX9
	 5ZLs9Xxj3D3HlO/kyb+CqI0M3KVd2wRSkizEPHPrq64BwJ7swtvE761xMNWb00ltSRkuF
	 rn1+MMym42modCH3Pjpd+zsVUJHbBij2i3K32/AgDQXfd1xPJ0mmso4/jmsLAVJ/NvlhQ
	 Y0wcx3R69+0avJpnlCNYxgB3ok85H1PtcVUkbECOFs6GyJrqb8aQhSTXm8hop7RYm+A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793764770;
	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=Gk9BZfsJtLkT8YYFnf4pmohI/7bu4ZfvS3Dm7QuEGqo=;
	b=Hg+NrCQH0SAm7940/VvMn/z9NQq9mcxG86PZ7cxzUhqRYgNX2N/PUx/Og52m79Ceft23
	 gHwHp2ZMOVX2F+wI3+SZgldhDAnKIM4Ku5ZrBCCKkfgg512C10g7OrKe0PMwyCzNKjEr8
	 kNlRI01C155nooKT6N3FwsYWZQJQmOVDBow21SD2Be0UuQakicP0dahpzItkdcqnOFQQF
	 OTxY0ltjwjstLM5fw0n+uL9LiluAwGoFkgeaWabWr87mPPUTQ21x9QI9KmvI/xzGSEHis
	 Xs6fGjQe0YFn6dJG5EU2jKBzUIlnpYkF5WDwjoGsJ0oexn7TDSUJ3EskOHdCApK4c8w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	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 B99A9606A32E;
	Wed,  4 Nov 2026 03:59:28 +0000 (UTC)
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=1793764752;
	b=Wxcyot+XUnB237dCVdAQd6w2nmd8f9aIQfc09Rdbn9uxcpVKqWNwsGpYLrqMv4LglFia
	 4GEnobaz372scHbXUC90ki2INjfgpbAU4L4Tuz317jxbD7FECbFR6+kCKRqu3s1EchLlm
	 tEJPSq3JANvRMbVWBc9m2047J17WwZWNpd+s56PHPW1Ni2fKi9uuUaHGTWfFvPUKDcc1b
	 v9muL9/UKzldG6vT2yE0PN5JdshxgR5mY+PfgvdhjSMkff3A1bYiCFUUDpiIKvayFRgXY
	 XeMvyxmFqBZBp6YoqWyRA0q9/bQkzJpMSfwx5D8lpmNfTUCwkMftk1TNsImHduf307Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793764752;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=Gk9BZfsJtLkT8YYFnf4pmohI/7bu4ZfvS3Dm7QuEGqo=;
	b=M190rYqF2WofhncoRuq41WAxIF4zsozTY0FSgy25I8nFvbIE5nsCP0dAbJExFnwU6EtX
	 GB5mUyhMUS80hPCLRvhbjuLo+eKOWo7bOQ0x/OgN5FC7t8fUdWTrY9u2SMPFoL21D5x0Q
	 HF913W/dtslu1hvzS28Oi/9YfmbVb0Yn16BbSQSAjJT3dTyP9+eFy2xE5P0JBtadwRtF+
	 LZ8tRai+fjNz9mu+Mz6fDWCFygqH8Ee25ECuPEvjVzrwN9obvCnyb1YkI+uvvRhgs+3F2
	 CoEdn3KYFw9r2VHF01GcSH+VBQ2kzhHJYa/lVUu3oDfr0K3K5EKQJEegXeWZS1CCJng==
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=FOl9NUOZ;
	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 84671606A31B;
	Wed,  4 Nov 2026 03:59:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84671606A31B
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=Gk9BZfsJtLkT8YYFnf4pmohI/7bu4ZfvS3Dm7QuEGqo=; b=FOl9NUOZ3JL9dPnDmGvRLtFE1a
	mBRE2rgn8rOLb1OOwwsjUZoHU+LtUAI4onBj1pu1YlDJP7cXMH2erasnXA+PnXN3Atuxnz2gTeYmL
	xY0wU3LRReVDStpF8MesUKS+dgCgHeQ727UnGAlsKSyrCeLr4pIdRezyEOHoYUsxP2ZA=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOS9R-00EEav-Ct; Wed, 04 Nov 2026 04:59:05 +0100
X-Cc: netdev@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@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: <20261102155641.3682626-3-mmyangfl@gmail.com>