Article View: linux.kernel.netdev
Article #7291Re: [PATCH net v2] net: dsa: motorcomm: Isolate all ports during chip setup
From: Andrew Lunn
Date: Mon, 26 Oct 2026 00:50
Date: Mon, 26 Oct 2026 00:50
16 lines
8772 bytes
8772 bytes
On Sun, Oct 25, 2026 at 10:48:31PM +0800, David Yang wrote:
> The chip setup only blocked unknown unicast and unknown multicast
> frames, known multicast and broadcast were left open (though the former
> cannot appear while the FDB is still empty). Before port_setup() runs,
> broadcast frames received on a port flood out of the other ports.
>
> Close the window by fully isolating every port right after the hardware
> reset.
>
> Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
> Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<0fe75791-3a1d-4a33-968d-c5c5fb28f86b@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-351656-linux-kernel-netdev=dewy.ruReferences:
<20261025144834.2810828-1-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-351656-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: dsa: motorcomm: Isolate all ports during chip setup Date: Mon, 26 Oct 2026 01:50:30 +0100 Organization: Usenet Network Message-ID: <0fe75791-3a1d-4a33-968d-c5c5fb28f86b@lunn.ch> References: <20261025144834.2810828-1-mmyangfl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1184758"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wDXNQfSr7aKWns2xMtoF4at2TFA= sha256:mxvOh88eoUlb1UiialNv03tb+uWae5QTkQKVV/fdl3U= sha1:roV1tZh8CGRUESsAVD2hz0RD3/Q= sha256:UsFD5yMTxMeYOWpi4GvQAndEgqZNEdLQfkGRJek3GTs= 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 DE3BD125B88; Mon, 26 Oct 2026 03:51:20 +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.25, 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 zimNFsTYUbhc; Mon, 26 Oct 2026 03:51:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351656-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E2CA8125B87; Mon, 26 Oct 2026 03:51:05 +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 A21F5294E4; Mon, 26 Oct 2026 00:50:49 +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=1792975849; b=UCu0AZv1coRvPj6v4S2mpW5daKn5px4ekV+zAJ4Qs6z0HvVhCnhvBxOG0QaqJweSVRBC +GBx9xBi0prSNqriS3fxX7PC3BmGxg/pohLaVb5k/6j8kBXC2C5BaSBFF5ZsfpZT/zAD+ urgtYItytzntftgwCy4sTt3ZrVbxb4zl3EWpD2QdBhqECkVWGuxc2fMvv/9dM4GCe3xkE 5B/K0lTEGvLN1AOkuYj/VgCah8cm0pKeJym8XLKRcwXX8OUWCoyTtyGRUfrQEK+w/DY9p vBhF1e4rt2lbQ2LgspwLmFJghhZWbMl+ik7y0KDI4UOcPO9HJJd+yFL+9eaU/wYxdWA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792975849; 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=hKJItMY3kaYlNl5o01G2gU4B2dpN9KdP/5hai7PL+/Y=; b=OyMCGnQ9tRZKeKN0rw9QmmHbz83ADflUlQyLvo2kfFd7es3cpPv8WmXkI4Ms+r08vM7O 9P+L7/XCMW9j4MHYU0XEVMvKXerbash2poxw6xpKgRuAhaGgwA4ZTirM2wR8bXQ3HkVFB i0LT535sQ324PW3zhg3/s87JAWfVjCzXcFps/piEG4+EJ35dWyoiqc2Co4w2hz6tJf45f q4DeAjiZC/g441hy6C/W7JaiRnWRbMvhh1BvOZjb+mRDf8MujUR97mfBgL9PMRWbvHI1+ SlRHwY/wp6e9J/TVY2AQkuw+b3lo/m73DNhv9whVw+4HaWA0sLcdRpRXct7xHWalR+A== 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=KP70H40N; 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 75B57606A322; Mon, 26 Oct 2026 00:50:49 +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=KP70H40N 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=1792975837; b=qF99QQo3Qw8Q2HMsHPtavrKx+P6N2m6deoq0nS8c8ZallgXv7dHc5w8kiCIllh4QN2vm QEbdRaplCn0s3XLxcefBFA/etF9c1gOYEze4zoZ6tdtKRGwxnVtLbPTw4O1fkcy2abelI mTaqcmFexOxqg59CTexXS5fVdJKaWre5HXEUUa9rpdUtog5daumOLZggPlUlAoTlOBbye JNzj6nq8T3fhddBE1zo/devhJGYkEUHFSXyHm/GgC/PbAI+uITHU1B6fIUqb4C4p4ceJs ZbQ4rbq+u4fTFZLVxwpe4unRj9zuT1BvT8MloJwFnVDMoMZ62k3zZYzi2WiG3f40aGg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792975837; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=hKJItMY3kaYlNl5o01G2gU4B2dpN9KdP/5hai7PL+/Y=; b=CjDuYB2pfUHKWqJWGv0ZDIkCjDwfyc/jmhHiRg2TySfw/HwUanJhHPU6uUWYtD/mPEQ1 cl2ga41ey7WI1w05ft4wkvEARmV0tk1hjXqS39Tv03rDBBJhjIoZ5ee9qMjeyaFHCpchE ar3+IS+NZ/RVXsVUwNIOOPftAXOHoNvbkMy/3JN2RCoLfKTxfWPRIigaISo6O+hYYIDnM 8Q03D8cHO1at9id9Ck5N43Q8fkQZC2joAHPAtS4Q1avYDlopD5RQ/ZWe3DygGczedh6QD zYswjTthpnHPddBC2w660e9m6/3gXbsLTgAiEOp01Zv8YeiJBu5ZMMsxB210YAXI6/Q== 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=KP70H40N; 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 0A3B1606A31A; Mon, 26 Oct 2026 00:50:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0A3B1606A31A 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=hKJItMY3kaYlNl5o01G2gU4B2dpN9KdP/5hai7PL+/Y=; b=KP70H40NKyO7perI+wo3rpfXsq 9aQuaS0a8CARTRJs+sigOQTxOxlXL0HDfNtHQhcIkK1zycwC6aLC8pqO0LIjd6R12t9v54cmdpOiT yFyQIIxAeMM5ClRHOz3xD52x5rvj2nXS+jPO//u2mJNHYuWd+pGXP2QFAJRpyOwraRWo=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xL8v0-00CjTU-V4; Mon, 26 Oct 2026 01:50:30 +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>, 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: <20261025144834.2810828-1-mmyangfl@gmail.com>