Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp269728pxb; Thu, 25 Feb 2021 01:55:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxScmymC9+IWmSBgJcRk+I0MTzxH5vleNCb3Ql3mL3LckIjF5FTgxZOZy34ukxCZGvyywZ7 X-Received: by 2002:a17:906:2692:: with SMTP id t18mr1857151ejc.16.1614246917101; Thu, 25 Feb 2021 01:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614246917; cv=none; d=google.com; s=arc-20160816; b=sWRzwgWXtMcAbuEFi/XzM8yjEbnOvk57Oz4vpVbmH7a8A4mxikLlAU9voR+bvCZbfx hR397F1wM4qpvxbN4iOvu0I7ERCBMksigUKbBEaRJauKo62pxD9Qe5C7X5GXJsrA7VSz x1fgjSQqAnuUMzETS5rCXpfey9koNBkDdkl63VoH8KhlJvghoLi8d2/t+Iu6lnuNkjBt LlN3KFYFh8qtDxBkvOanFJQIhGWYh1Vl8NJJ0PfTVnWOptFn8sP14Wn/OTFcQKmZqhap Ahgfxm/m/xZzhrL36POvRGrqUSitsXmzs+P1Sq523M2V0eTZr/eRgo45cqbjQfwslY4b 1MtA== 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=UQRWpi4d7l1eNlaRa/csWTLZgJ0y+q6ga2NLfchBZMY=; b=mR2GhI7In+P/0GdJaJGDpZ8LO4yt9tS+K6CNoRdPLl8KquF+qFz8QpVqkw3zgUeXY/ DHgK5gye8e01z+ERk3JsGrAan3K0PNegjMtN5eGDXqDCN9XawyDQ/YSru3zwvt1gQOpU GxEMc+PwsJytdvlRuVvzKIda2bcbRuPhI1myhtVEBtkyIkEAVW6lOyOc49QaNQ6Ixld9 vh3UrFDT4CmmXVDz8ZHUmlSegBfT/zo7fuLeF+5cOudk0bF/5jGjAya+Sx9TGtIQahP2 WJrdU3W96pHNuKgWINo+mQHJbflC/VjENL7Wh0dmOUSeEXCeSU83LPkkz2MROBJAgsg1 ffbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wTVbhkDG; 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 z62si3816713ede.438.2021.02.25.01.54.54; Thu, 25 Feb 2021 01:55:17 -0800 (PST) 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=wTVbhkDG; 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 S235699AbhBYIR0 (ORCPT + 99 others); Thu, 25 Feb 2021 03:17:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:37762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235686AbhBYIRP (ORCPT ); Thu, 25 Feb 2021 03:17:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B492A64EC8; Thu, 25 Feb 2021 08:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614240995; bh=Me+eOGwQpSJjEdPdPym5v1pyap07D7Pxx1ypb60NhXs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wTVbhkDGe6+qtOXmdxYrdNRK+FOPUhSENsXDIsFLygdfckk8237n+83p428FBILnr O5HOAXggYNNHjPRc68OMmlLuIUuFqQHlSkzSK91ktQaUpmHEFv0OTgOluMHw/ysmOA TJzRCHVpmiFkBUzdMDB+vsOQMZF+kDdkAWvpnEVA= Date: Thu, 25 Feb 2021 09:16:32 +0100 From: Greg KH To: Florian Fainelli Cc: netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , "David S. Miller" , open list , stable@vger.kernel.org, olteanv@gmail.com, sashal@kernel.org Subject: Re: [PATCH stable-5.9.y] net: dsa: b53: Correct learning for standalone ports Message-ID: References: <20210225010853.946338-1-f.fainelli@gmail.com> <20210225010956.946545-1-f.fainelli@gmail.com> <20210225010956.946545-6-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210225010956.946545-6-f.fainelli@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 05:09:54PM -0800, Florian Fainelli wrote: > Standalone ports should not have learning enabled since all the frames > are always copied to the CPU port. This is particularly important in > case an user-facing port intentionally spoofs the CPU port's MAC > address. 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. > > There was no control of the BR_LEARNING flag until upstream commit > 4098ced4680a485c5953f60ac63dff19f3fb3d42 ("Merge branch 'brport-flags'") > which is why we default to enabling learning when the ports gets added > as a bridge member. > > Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch") > Signed-off-by: Florian Fainelli > --- > drivers/net/dsa/b53/b53_common.c | 18 ++++++++++++++++++ > drivers/net/dsa/b53/b53_regs.h | 1 + > drivers/net/dsa/bcm_sf2.c | 15 +-------------- > 3 files changed, 20 insertions(+), 14 deletions(-) Note, 5.9.y and 5.8.y are long end-of-life. You can see that at the front page of www.kernel.org if you ever are curious about it. thanks, greg k-h