Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2249878rwl; Thu, 30 Mar 2023 07:57:55 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2SoY0QfkBciDQoUFstaYbObXIR09fyQS7rytlWMQtKp3SYVYvobXYCD1/r2YKL/vzrlx/ X-Received: by 2002:a17:90a:f2c5:b0:23d:19ea:734a with SMTP id gt5-20020a17090af2c500b0023d19ea734amr19618373pjb.3.1680188275378; Thu, 30 Mar 2023 07:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680188275; cv=none; d=google.com; s=arc-20160816; b=RtqOk3QHJcbqX5/xKf+7ldHPuxYq8Kh1/56vgpnb9FZAnm6wV+LVyxt164/g6hkbT0 DimJYgtXn4/caPLLXXT630Eoh3pPUIKq0DIfI8hDUcoXpYPU2FQKKlqs651byxIJhSQQ YfvFvI2WHjKewLuXAWxIiKzy7DDGdzk/vzSOlMZrj4z49DlAzGhJWtm7AMhWBy7E9S2E OF8Ul7F2EHBuaHikDZqut9kZtvFH+0uo45IsRAjPtbWBRC7fHVHPrcksoVxgsuzz7a/H mjo4wChjhwWXfOMS0oTCu8uyo80CrdZkczxpAKSTdGKdo2qzKdbx6lqmAlAZLvYFsVvR +Epw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yU8Am5XS4bF62pVIqk8T6WsY9phiYr9ElUgv6Ugf+V4=; b=fLh36kGHYpH5BbtnnHPaHw1bh8FEFrGxkZlMnsRoK7S3MGJziIPPFxcd/auD+L+BvP RPrTzuEhu6vdJ4k6pBXS1GhF92Cf/airhB34QAlUWj+tlwQ6tyYeW/jOeJVRQQF0b5t9 w1DSdPnu3O+c0EapISlN627OmaOjAGW+P9rSRR1IEQAYG0IJD9eRpGcTCYgP0EqdKNKK NlUyJuh8c9zL9J948y6cu8TrijnIDqwJ+n/sqG5+9NSdPbr7mgcXUYdC4u3okped03pl eJNBGvp6QHml72fCGCJiqyhgKuV3PdS9uhfu2wHvj1I+wf4/F6X6yna2VnyDheaWfOk6 issA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XNyGjhS0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902e54400b0019b0c650267si36004241plf.510.2023.03.30.07.57.42; Thu, 30 Mar 2023 07:57:55 -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=@gmail.com header.s=20210112 header.b=XNyGjhS0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232600AbjC3O5F (ORCPT + 99 others); Thu, 30 Mar 2023 10:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232530AbjC3O45 (ORCPT ); Thu, 30 Mar 2023 10:56:57 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE517BB9C; Thu, 30 Mar 2023 07:56:38 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso22209884pjb.3; Thu, 30 Mar 2023 07:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680188198; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=yU8Am5XS4bF62pVIqk8T6WsY9phiYr9ElUgv6Ugf+V4=; b=XNyGjhS0HyE/19hdtnkz4Ep2rUVTq/MvwpH9+sV9RrYuAOe34ArZ34J1LjrpbQDQoT j9AorV55iC8yKbebmSG1/CEEmd3RbdrqxzCQgdMKSxKdQbUrt+xH4UWMPS8IyaCN3Jr0 os1/scO7YSDkUes7sscnsTFqYQss0sfya34emJv8JPXDN5UPcmNrk7ismVAfK2KscYPU lsdloEQ2pV36SXEFQySk8wftm1EmE3BnJytvc4gekp6vB6/8FvjU3SM5+IHPS0ZffVu5 4wsviBgxT3H0OqaVqHVtEBKK5I9zsfDDfiVLWKDkLsKTcZ4NGFmzNsp+Vn2NtL995iIy M+SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680188198; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yU8Am5XS4bF62pVIqk8T6WsY9phiYr9ElUgv6Ugf+V4=; b=l4Ih1f09tUVjXerrBvNHIYIVhtkU11ikQvn3nDaWTXdjWL9LQGLLv/4aRUHC8ubMwJ 4Z1Y5HBEBwY6gcxdASA5gg0H2qij8KcuHJZKS+LQTZUb/NoPYIzREIOV/4ZApiTi8Ikd BmvI37s8dfdTWRhob2vamh8rvYERIWf24pf72XbwIVXdgkihR/bI/LdI7XZ3KwDnu+Lm oVvFUfktrRGH/52sc8F6Yr/H0BltG7fnrrLAf7srwXLv8Yc5b9z1YrohMRBLtT85awI6 jjUwYn7D5ak7coG+3osC5NxgaYZeOyeZPB72FeDabp3Mh6bR5Ir1MOmgp57z23BUtpOt P9IQ== X-Gm-Message-State: AAQBX9fziFVUxwE0wWdr6qafqAnbqAnk6tFcMJ9Rcz/6BPGnkIjH8+1v NhGLqnasldeK3a0pxj4OY9g= X-Received: by 2002:a17:902:ce86:b0:1a1:cef9:cc5c with SMTP id f6-20020a170902ce8600b001a1cef9cc5cmr29508944plg.15.1680188198040; Thu, 30 Mar 2023 07:56:38 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id b10-20020a170902a9ca00b001a04a372fa0sm10562439plr.251.2023.03.30.07.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 07:56:37 -0700 (PDT) Date: Thu, 30 Mar 2023 17:56:23 +0300 From: Vladimir Oltean To: =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= 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?Q?Miqu=C3=A8l?= Raynal , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Alexis =?utf-8?Q?Lothor=C3=A9?= Subject: Re: [PATCH net-next 1/2] net: dsa: rzn1-a5psw: enable DPBU for CPU port and fix STP states Message-ID: <20230330145623.z5q44euny3zj3uat@skbuf> References: <20230330083408.63136-1-clement.leger@bootlin.com> <20230330083408.63136-2-clement.leger@bootlin.com> <20230330104828.6badaaad@fixe.home> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230330104828.6badaaad@fixe.home> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 On Thu, Mar 30, 2023 at 10:48:28AM +0200, Cl?ment L?ger 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(). That's... not true? dsa_port_switchdev_unsync_attrs() has: /* 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); a dump_stack() could help explain what's going on in your system?