Article View: linux.kernel.netdev
Article #26395Re: [PATCH net-next 1/3] net: ethernet: ti: cpsw_new: bypass ALE in promiscuous mode
From: Andrew Lunn
Date: Thu, 03 Dec 2026 13:06
Date: Thu, 03 Dec 2026 13:06
29 lines
10064 bytes
10064 bytes
On Thu, Dec 03, 2026 at 09:05:09AM +0100, A. Sverdlin wrote:
> From: Alexander Sverdlin <alexander.sverdlin@siemens.com>
>
> In dual-MAC mode the ALE is VLAN-aware and the Unknown VLAN register is
> left at its reset value, so frames tagged with a VID the ALE doesn't know
> are dropped even if the interface is promiscuous. ALE_P0_UNI_FLOOD only
> helps with unknown unicast in known VLANs.
>
> This breaks DSA switches with VLAN-based tagging protocols, like LAN9303,
> which encodes the source port in the VID: DSA puts the conduit into
> promiscuous mode, but the ALE drops the frames coming from the switch.
>
> Bypass the ALE in promiscuous mode, as the legacy cpsw driver does in
> dual_emac mode. In dual-MAC mode the ALE never forwards between external
> ports and bypass delivers all received frames to the host port only, so
> the port separation is preserved. When leaving promiscuous mode restore
> the bypass setting configured via devlink.
>
> Switch mode changes reset ALE_BYPASS, re-apply the rx mode of the running
> ports afterwards so that the promiscuous state isn't lost.
>
> Fixes: ed3525eda4c4 ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac")
Is this a regression? Did it ever work?
I think this is net-next material.
Andrew
Technical Details
Message-ID:
<6d84a817-7abf-41a0-9080-8e7d622fae44@lunn.ch>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376621-linux-kernel-netdev=dewy.ruReferences:
<20261203080514.577407-1-alexander.sverdlin@siemens.com> <20261203080514.577407-2-alexander.sverdlin@siemens.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376621-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/3] net: ethernet: ti: cpsw_new: bypass ALE in promiscuous mode Date: Thu, 3 Dec 2026 14:06:16 +0100 Organization: Usenet Network Message-ID: <6d84a817-7abf-41a0-9080-8e7d622fae44@lunn.ch> References: <20261203080514.577407-1-alexander.sverdlin@siemens.com> <20261203080514.577407-2-alexander.sverdlin@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2497797"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:FF5OzWFA68uJDePQ7x/3c8sjfVs= sha256:Okt+3yKeZunlBWE9OQ/RXIHQpVppv8j8i0pyqpw2oPg= sha1:zecAYbBtqmzK+wqaNFu2s45nAHc= sha256:lhKP1LpBdfR4PHg3Mmm2VnIR3LiEfvc+RYnUk2wAER4= 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 6287611795A; Thu, 3 Dec 2026 16:06:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.399 X-Spam-Status: No, score=-3.399 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.001, 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 MmsEoPxxLPwq; Thu, 3 Dec 2026 16:06:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376621-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 BFA24117955; Thu, 3 Dec 2026 16:06:31 +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 DC313601FB6; Thu, 3 Dec 2026 13:06:30 +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=1796303188; b=mjrXm3DG85HuVYOcU8o5tr0gZvEbHsKJsgFttI8QzeAAh9oRAZt6robGew3VqnKvO1Io jBBvoGxiSPUiJmIWPh8tV9Lh2c3riJq17PVSQXgtqqqC6NPlObBmrA2JJl9N2HQUEGo/u b98k42UqRIRReOvR4hrvCxSBsknwif1f7IH+9rIG7+ivbKcDXr2+LqzEIJPrGmBVLheU4 NGSBR3Zz1zVYoc3T3imfUPd2qAuM4QsErvrLoJOuROwn2pYGaXys8l9r+z2KgSYVdXYJg YVR/ZmrlbDj6OaaQsTGbmGJqoUGHwHhgsBzflCsoezgUmbxDm4DB1bpV9uGKjF8xjTw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796303188; 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=fKWjxtSSi9v7ty+rstSWMrkZaVuCOS5VvB75i4i85MU=; b=FB4rGcLnC8N0zgW2tdS43aNc7dSHFCGXg12AyxtAZXGeyQNdQNIIMBTbvvQJv1vuMqro JB4V8KbcbAvfNukfUuS4GVPQ0v8nT0BhAZSNsPjodK4y9JgWPpVMtJlQiNMMG/hKJN28p 5uN3vHdioDuVo7OfIaNEKzW9/uO0VioJEIesozPoiZWHNK5gd1XyENK07ngD4EfXcq+Js LSh7LCfUrL6rXpiO4m0Hfw4cb1QIAeA+axjq3QSJ4gRPnRioBAxwUy7rJA4gh46zOwodm YbaVuG4CngMBGFQ/iG3/mwCQtyoCXquVtn9dX/yBi35rdu3fJxIJ7vVvRMSUs+sBaXA== 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=SNQg4soj; 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 70D05606A32F; Thu, 3 Dec 2026 13:06:28 +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=SNQg4soj 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=1796303187; b=HT4bYn1RvJOmIVuSPa3/9AeI95cwbdZ7Oh2NWzrylIY1zSRAochfJ/l1qGftF9yffPJ9 mPf4vtArUxdmRcJlr7tTnbI/BTYIqPVm/Bdddg6wGFcPftcGVBFM55sPmKTPWNfk1JFq5 ygbhm93/KEVxmfMxT7kiGfr/LkfK+4wFOnXmlCmkwlcByTaKcihER87wab/v7kpGYgKn7 sSIy0Ej29/asFNMGOfrb4U1GycJ23UqNGY5poKcSiOSFlbPY6kppVXmMqySUYnnrkiJlk AcnNbXi/gAsEVsrDu2rGVLMndo+FRpgXEXhm/BdpTjcqx5A9MJfLOI9Wa+fuonwrgqQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796303187; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=fKWjxtSSi9v7ty+rstSWMrkZaVuCOS5VvB75i4i85MU=; b=NfzB04C92hmWpPhdxrWKb7KodG3UgnDYAnOVFGruZkEtBkE1bwY+nvSR8E3bUeigr0jr +9P7ciszS95FyLv60KqTZEIVaecYVSnbQZZacvDOsa8VTq0ywhzycOvaDgZv0hIgRwp+P DViBbZODb/KukS9XDy1ViF5VDE1YYk4AbqzWtv28HTTBgZLrwgII7kfuKWJXxWfkHAraX sXQfESITd6nWwjdzM1MBs6eCRYBedI800wfrwXeIqIWnA5fGRQ7PepQerdgA5lo+mT3HU jb86OU73+zz9/Kxpi8WK4V4xkB8YrE6KOMmIi2IXo/YQ33vlLlBvT7mWeIMeHz//aqA== 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=SNQg4soj; 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 4DFB4606A338; Thu, 3 Dec 2026 13:06:27 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4DFB4606A338 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=fKWjxtSSi9v7ty+rstSWMrkZaVuCOS5VvB75i4i85MU=; b=SNQg4sojz8xObO1pu9cNfpaW2t GD8BVGN4OD7Gc65OfXrlVbPjn9+phmhnqAlHuf09tVwZbQYwso/B6OoiSMTNU3MAFf+YvvnipeL1D zhkBM6xeqKzDR92ERTawf/hjVhIORQyBvL01jdO1cWXaPGHFhF8yYLVMP9XS8uSfT/Tw=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xZ6Vs-0031kg-2M; Thu, 03 Dec 2026 14:06:16 +0100 X-Cc: netdev@vger.kernel.org, Siddharth Vadapalli <s-vadapalli@ti.com>, Roger Quadros <rogerq@kernel.org>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Karl Mehltretter <kmehltretter@gmail.com>, Kevin Hao <haokexin@gmail.com>, Guangshuo Li <lgs201920130244@gmail.com>, Aleksandr Loktionov <aleksandr.loktionov@intel.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Murali Karicheri <m-karicheri2@ti.com>, Grygorii Strashko <grygorii.strashko@ti.com>, Mugunthan V N <mugunthanvnm@ti.com>, linux-omap@vger.kernel.org, Lukas Stockmann <lukas.stockmann@siemens.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: <20261203080514.577407-2-alexander.sverdlin@siemens.com>