Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp296291pxb; Fri, 3 Sep 2021 02:16:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4/A6reyfsGMdVJQNWVmzvRKlY1LuIxK/dLt1LPE6F1EbY7E2TUJDglpkk601jv5XvYasP X-Received: by 2002:a05:6e02:1d9c:: with SMTP id h28mr1975487ila.266.1630660566154; Fri, 03 Sep 2021 02:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630660566; cv=none; d=google.com; s=arc-20160816; b=Zz4dU84Krz9pmWi/3huFXkwrQwNYaZaotl9BJz4JCJFeF/cjTgp6zfcZgTORf+bdSx TQqLlGyTAiQhnJe+8Xp2RBmSg5g6JvfzuD11DMiu23qbGDr9rzQiRvfnLdN6+g8FQHL/ iRuVTIjqNJLEr9iVXs1XOcVXG6KPEqfgUxZg+KUmFo11qqvMIvX/Da7R+4shARM8QU5K sogSQXlvfzQ4RRN+RrXBR3RurdUC8UuruqWu7Lr50fspj1kU5zDhqdihzm3Mhprh8Mr6 fiSojOqwLDXIQoyV7OF20bTqWIWG3s6JdxnLd8omIAH/mUqSSX0CsiUs84Bpv3SMUuWL 3gyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kb8Z5KH61dlFFT8cs85Ri7+/n7iNLKzAMoxXAmW2ceA=; b=zMXX9ZY1kQoCGkmrxwdZj6gK/7vCH6zzTmoSkknZXS5sbSlvuk/3oolrjel1w+NYfq 9uWEyZz0TU6rMw9Z4/x2vWDJJ0JPmKxnZXzkv5fMPsJeB+lhK2M/z5ViSoFeyJNOC/Ym 6mV15PeADFvw2tvA9Wmw/u3/KGsWG62vvGLbZzqVvZOnxvq4+HPAPrujbTLvf543QwaS xdB4lyKiR/8aYlQ15yfPda/g3S2xb7wjsoa6qWHFZul4OgbMkZURv8YK5AXPzfhAUsr4 Ibl5RODsv+82OzRUPbvYOW8kCKpuYU2jF1gF8jUdI5kdr5/iYSzy/k5anL3zNbxJF/OX 7yHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="VS5jH6/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si4980887ilu.101.2021.09.03.02.15.54; Fri, 03 Sep 2021 02:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="VS5jH6/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1348651AbhICJPl (ORCPT + 99 others); Fri, 3 Sep 2021 05:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233277AbhICJPk (ORCPT ); Fri, 3 Sep 2021 05:15:40 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CF8C061575; Fri, 3 Sep 2021 02:14:40 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id c5so2039713plz.2; Fri, 03 Sep 2021 02:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=kb8Z5KH61dlFFT8cs85Ri7+/n7iNLKzAMoxXAmW2ceA=; b=VS5jH6/vJozUZwnuawGnyMC48QMXnhiunRInAGDzbwL/WM0K4OHttgn8v1WCHsygYV XtAU90YgcTIDbfWQpOteVNWViEFrEkjPcJJbHLsCiJAFOUNxLEK6hbYR9cNxExvnShpo LyqlT+c3lp5cystcpuSx+j0P2kH/r09xPyCfn8NuA0A1cshCiFaVISLRV+ZhlfT3bTUP PhxSKw5dKyHQXBpu3yLlhAYWERBo7a+fMAYKdQEVJADI+D33toqWqcNflbD1oxzKiRG8 L35MKyfOzPdC/cBx/XIsdgFwmgaenK14tAvoVkxX5Zhywm8m/dL90ZbZ+9rnlCfrSOYJ TJuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=kb8Z5KH61dlFFT8cs85Ri7+/n7iNLKzAMoxXAmW2ceA=; b=iZ9VPsuIinKVpbO1zuTdkH5E6ijy/NU5Xqsk3waVgjFE3acjAsXWv7hFCYs4gfimjm +i1edhD4DdqvhHDJS7g74mX04KtVzylmBn8D4EBfqIm3Gp4Dbb7tqkrYOSF8hydm/Fcz WBdm5CU/0oDeTEQH5kBQwy9V4RkzXy0UUANcl/rvq3B+fUrMbcshc9n7pBji6C+AWb6T xlX1tDKhzI8GWRugLfX948WP3jQxuPrrvgYKR6mOsp8kxcoYuG7uGwcgkhluQOjgqWYT tNGJ2RrloS8DdTOEEslftfqeJ7zd5WhLBAowIH6JgmH9Wy9KZpqtgX0KGI6eS75ZcAJq Aw5g== X-Gm-Message-State: AOAM533pT9ZpJ2UrGs9QLM7kxxtjGGy26MLFdq0tR7ygfSgrHsKjHdKI cn9mmvqRZHnH+CLI5EE1Kd0= X-Received: by 2002:a17:90a:6282:: with SMTP id d2mr8791405pjj.189.1630660479349; Fri, 03 Sep 2021 02:14:39 -0700 (PDT) Received: from haswell-ubuntu20.lan ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id y1sm5766231pga.50.2021.09.03.02.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 02:14:38 -0700 (PDT) From: DENG Qingfang To: Greg KH Cc: Sasha Levin , stable@vger.kernel.org, Sean Wang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Matthias Brugger , "open list:MEDIATEK SWITCH DRIVER" , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH 4.19.y] net: dsa: mt7530: disable learning on standalone ports Date: Fri, 3 Sep 2021 17:14:30 +0800 Message-Id: <20210903091430.2209627-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: <20210824055509.1316124-1-dqfext@gmail.com> <20210902053619.1824464-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 02, 2021 at 07:58:37AM +0200, Greg KH wrote: > On Thu, Sep 02, 2021 at 01:36:19PM +0800, DENG Qingfang wrote: > > On Fri, Aug 27, 2021 at 12:19:23PM +0200, Greg KH wrote: > > > On Tue, Aug 24, 2021 at 11:57:53PM +0800, DENG Qingfang wrote: > > > > Standalone ports should have address learning disabled, according to > > > > the documentation: > > > > https://www.kernel.org/doc/html/v5.14-rc7/networking/dsa/dsa.html#bridge-layer > > > > dsa_switch_ops on 5.10 or earlier does not have .port_bridge_flags > > > > function so it has to be done differently. > > > > > > > > I've identified an issue related to this. > > > > > > What issue is that? Where was it reported? > > > > See Florian's message here > > https://lore.kernel.org/stable/20210317003549.3964522-2-f.fainelli@gmail.com/ > > THat is just the patch changelog text, or is it unique to this > stable-only patch? It is not obvious at all. The issue is with all DSA drivers that do not disable address learning on standalone ports. "With learning enabled we would end up with the switch having incorrectly learned the address of the CPU port which typically results in a complete break down of network connectivity until the address learned ages out and gets re-learned, from the correct port this time." > > > > > > 2. A partial backport of this patch? > > > > > > > > The other part does not actually fix anything. > > > > > > Then why is it not ok to just take the whole thing? > > > > > > When backporting not-identical-patches, something almost always goes > > > wrong, so we prefer to take the original commit when ever possible. > > > > Okay. MDB and tag ops can be backported as is, and broadcast/multicast > > flooding can be implemented in .port_egress_floods. > > So what are we supposed to do here? Function port_egress_floods is refactored to port_bridge_flags in commit a8b659e7ff75 ("net: dsa: act as passthrough for bridge port flags"). I can backport the mt7530_port_bridge_flags function as port_egress_floods. > > totally confused, > > greg k-h