Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2258220rwl; Thu, 30 Mar 2023 08:03:14 -0700 (PDT) X-Google-Smtp-Source: AKy350ZoOZphlYMx0znpE8j8gpDDgrJ81ylYGONo9m5tVb0TPWVBqpXY/jUj+QfVVFu8YxszZgYs X-Received: by 2002:a17:906:51cd:b0:931:4285:ea16 with SMTP id v13-20020a17090651cd00b009314285ea16mr2387579ejk.7.1680188593815; Thu, 30 Mar 2023 08:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680188593; cv=none; d=google.com; s=arc-20160816; b=ekSogTT9uz6pnz+YGdlvVzfI8R5DYDebpYTdjrXd2TjR1zXCPEru3elEVzrDrpAQWG CBdZNWw4zgTq6xn9zL/BH9huNIDu0vqLO9aWB26UaKFWk0hevLVeyGVD9jmMNWm0RQGy aJeLrgBmewFktJsf0gd/DcIotsW/KJnfomYz8PcD8HtE4kpUQIMVgNulKavYa6H4XKrI f/ByUAyTO0fDfo+grGmULkBn8KLGzzbGBx1oso58Z6VPjKBYIbyWst2XQEc22JMPP+l4 GXasw+WBKvx6rPU/q5IIafHmaBZ/gTuSXQUzWRwOTD3Lq9n0nfzTaGfeR3D+QBrwsE/b zsxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=W+fF9+hXUqTVKBtkjbyAVsPYf8+Z/jN24amAbg/Esug=; b=P8biVz4+eGBBP4m3M3SF2uTj4rK59SCkO3WgNDee0j1NvQZbnC9MPabMZMFJY5OiTg RquupliHnxLmCtZVy0gyVz48CwRY+2iS2raYfCyynVreMMpC8m7X3sm2wbgceOS44Ont xsFlxDtEMUPNmeR/cyoH0LW67uwTVhnSqD129gz9ZGBYOMZdrh0TuwhHZoRh+y+kIPn+ d52M62ILjlw5+/zxzT/oXGcNz+qVWknXHdhg92u5uKsLMKI9zzZSzvakgoCl2aBdCRWe EuHdMWjHppIMKEzw6SM1SB+mY4PONOIvS1PLV3mq/TdnrDsTnFmuf8AmLBvQM615QRn2 h88g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=I+eZwnKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw8-20020a1709066a0800b0093e19977b9esi19252894ejc.126.2023.03.30.08.02.34; Thu, 30 Mar 2023 08:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=I+eZwnKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbjC3PBI (ORCPT + 99 others); Thu, 30 Mar 2023 11:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbjC3PBG (ORCPT ); Thu, 30 Mar 2023 11:01:06 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49DE41BC; Thu, 30 Mar 2023 08:00:59 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5BCA04000B; Thu, 30 Mar 2023 15:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680188458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W+fF9+hXUqTVKBtkjbyAVsPYf8+Z/jN24amAbg/Esug=; b=I+eZwnKw0YV2yA5a4IdM7h2HHx5PsrKBF1G1q4qjSO6ZYs51TqyH6E5IBd5X/8Wu4kkerR 6Tkxv3H5hA+c2t1pYmpEpowHKsVfugebbuJPcq5R0sqEC+1AHxwh4rzwZ19xrbz3uev6bH 9/zNs4+GUSvgxaWMjSKjnG1Ly6+nWXAL+YwrnOBdHHjd+JStyxLo8dnR0mJ43lyu98tubX nNCccyGgNP7acXQv8IluJ400Nlo9vXYwSnE9xAAjb9suS6oklgyT5HbTU/q9Aqh9Cqa7BI p6bn+6roXHtvowBYnu6mo+a97MTSRv6dw0ZelkCCAtTbzBpsgQ59iO6PHOmASw== Date: Thu, 30 Mar 2023 17:01:34 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Vladimir Oltean Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina , =?UTF-8?B?TWlxdcOobA==?= Raynal , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Alexis =?UTF-8?B?TG90aG9yw6k=?= Subject: Re: [PATCH net-next 1/2] net: dsa: rzn1-a5psw: enable DPBU for CPU port and fix STP states Message-ID: <20230330170134.2f0cd3d1@fixe.home> In-Reply-To: <20230330145623.z5q44euny3zj3uat@skbuf> References: <20230330083408.63136-1-clement.leger@bootlin.com> <20230330083408.63136-2-clement.leger@bootlin.com> <20230330104828.6badaaad@fixe.home> <20230330145623.z5q44euny3zj3uat@skbuf> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Thu, 30 Mar 2023 17:56:23 +0300, Vladimir Oltean a =C3=A9crit : > On Thu, Mar 30, 2023 at 10:48:28AM +0200, Cl=C3=A9ment L=C3=A9ger wrote: > > Actually, after leaving a bridge, it seems like the DSA core put the > > port in STP DISABLED state. Which means it will potentially leave that > > port with TX disable... Since this TX enable is applying not only on > > bridge port but also on standalone port, it seems like this also needs > > to be reenabled in bridge_leave(). =20 >=20 > That's... not true? dsa_port_switchdev_unsync_attrs() has: >=20 > /* Port left the bridge, put in BR_STATE_DISABLED by the bridge layer, > * so allow it to be in BR_STATE_FORWARDING to be kept functional > */ > dsa_port_set_state_now(dp, BR_STATE_FORWARDING, true); >=20 > a dump_stack() could help explain what's going on in your system? Indeed, I was referring to the messages displayed by the STP setp state function (br0: port 2(lan1) entered disabled state). But the DSA core indeed calls the stp_set_state() to enable forwarding which then reenables the Tx path so I guess we are all good with this series. Sorry for that. --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com