Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3823986pxb; Tue, 7 Sep 2021 08:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqfhKkuhS0fBg0VWHcpFmGrhJ9gPjEZDbuqVK148wm+A08ljsY5inXTuxcD+rQYWhrpFRT X-Received: by 2002:a02:ac11:: with SMTP id a17mr15917170jao.100.1631028019285; Tue, 07 Sep 2021 08:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631028019; cv=none; d=google.com; s=arc-20160816; b=Vq4m+ixxOybH6tongvidB26rXWPsAabNi42u9C+q9VcdAQ0dfUUr2wqSwPlhnMz35D AxZlB8I+Dya0zy+R7P0jpEJve6QMHuwpUq/ExxpLypzUzcQWlH3xBJa6T88PT07Pg5/e 89es+T/EBfLbcY5NAbte9wl4LaaV4oJdV/9dVnShW0svYZtg81y9lrUF47JWTMYsIC0W 1FIQJrV0rvhtGJJW4OQWTrgaVLYOuKJzXxK2UMrSIErK8z4OP+Ugr9q/NQRrY7AJcUop kXJ3n/f4AvqMlATiw7aKvusWIpFFDI/HRzRaDh1BqNFB+Qw1AjyDLRJtWh81NTRuKqeh qFIQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=702BWrM1ueWOR/OWmfpo2HKC3AG6KEpgTI9KpL0pKDE=; b=Y2nTBpv3+eziNe10ZnXM8AHD5Zabwa2u0Vtx3IjBuAqgZGgCRhlhtCWqPsoSwIBE9V tKnbw3UDg/+utg3uf3ryssPZYXSsfVOfCxnboXfZs+yOXU8qXuAKqtpCturlxBmH1ElZ BKvRkmgOVFJ/DvBKBvJoj0C9OQ3IltDxATUt6Z0L5rGUZmR4NI+3JDpNcU7hMG+aH7CA O1aAMTxj/JRrm92TKYZSERfn6/sM4C/bVdZHqeqMN7Jbaoppuxe07Xa2pTMn4CcODqcx GyxvEEf1o4V6f+UNu8FfloW228qBZBgDSNzur69tY8R8Puu0JfPDECFHG21FmC7+IqGf rlyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pqofC4Gz; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si10660004ilc.155.2021.09.07.08.20.07; Tue, 07 Sep 2021 08:20:19 -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=@linuxfoundation.org header.s=korg header.b=pqofC4Gz; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345047AbhIGPT2 (ORCPT + 99 others); Tue, 7 Sep 2021 11:19:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:44902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345187AbhIGPTV (ORCPT ); Tue, 7 Sep 2021 11:19:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EF88610D0; Tue, 7 Sep 2021 15:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631027895; bh=/97m/i74To/vQunmhZyAuwwUMsBBuG+szwVCniQt64A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pqofC4GztYvtJ7O/7E1CiSCDAktqLeJ/I06RGKJsi8i87pRdcWf2hq3o5YN0oRyiF UWfot5qtizBHxuJM5Wj04clC4HTGEpKpyssISmbiZCIE/V49g7YQ7vJ/ZxCX+mLx1c hSyskT5QoGiUQL+2xUnAXJVYObzNjsaKGokGil3w= Date: Tue, 7 Sep 2021 17:18:12 +0200 From: Greg KH To: DENG Qingfang 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 Message-ID: References: <20210824055509.1316124-1-dqfext@gmail.com> <20210902053619.1824464-1-dqfext@gmail.com> <20210903091430.2209627-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903091430.2209627-1-dqfext@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 05:14:30PM +0800, DENG Qingfang wrote: > 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. I am sorry, I still do not understand what to do here. Ideally we want to take the original patches as get merged into Linus's tree. If that is not possible for some reason, we need to have it documented very well why that is so, and to get everyone to agree with the different patch that is submitted. thanks, greg k-h