From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B738DC2BABC for ; Tue, 7 Apr 2020 06:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 852B92072A for ; Tue, 7 Apr 2020 06:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586239554; bh=nARBMLqLlzl6eTVf6Sc/qdE/Ejb4GF9yesU/8cTEqnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=jwy/TvF0nsqtK9EDXAFQtmbxVOYCqRKRLAdrpsKk2DFBLNacimC/H4UqROD5SkS8V BERNSjkhP3fwlxpLDSxHAP3k0ZoBIwF6ITwe8rYYlrjcDR7hDT2LWI2eRfbCf+SPQU 3p6JJeC22SyEqZR4510WhBl7aaujOdmd5EL/ZysI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbgDGGFx (ORCPT ); Tue, 7 Apr 2020 02:05:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgDGGFx (ORCPT ); Tue, 7 Apr 2020 02:05:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75F392051A; Tue, 7 Apr 2020 06:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586239553; bh=nARBMLqLlzl6eTVf6Sc/qdE/Ejb4GF9yesU/8cTEqnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h/b2Jl/7ging3eXOdJmk9yihehSN3vLANY7G0mLkBfjvM7YvICYRhKq00yugHhYsf bCvnbGHjbLyOzL1+zdkv/2uR6EpjJv1GH51i6anih8vGdoFLQT+/BiTogIpzwXdrpV jQqAhSOxZFnkKd9lFHS35cZ12LZxQnSJ+WqjIVYE= Date: Tue, 7 Apr 2020 08:05:49 +0200 From: Greg Kroah-Hartman To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Maxime Bizon , Vivien Didelot , "David S. Miller" Subject: Re: [PATCH 4.9 040/102] net: dsa: Fix duplicate frames flooded by learning Message-ID: <20200407060549.GA260872@kroah.com> References: <20200401161530.451355388@linuxfoundation.org> <20200401161540.401786749@linuxfoundation.org> <5b036a64-db51-d687-758f-c8b0a5b0c72b@gmail.com> <20200407054227.GA257896@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407054227.GA257896@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 07:42:27AM +0200, Greg Kroah-Hartman wrote: > On Mon, Apr 06, 2020 at 05:42:16PM -0700, Florian Fainelli wrote: > > > > > > On 4/1/2020 9:17 AM, Greg Kroah-Hartman wrote: > > > From: Florian Fainelli > > > > > > [ Upstream commit 0e62f543bed03a64495bd2651d4fe1aa4bcb7fe5 ] > > > > > > When both the switch and the bridge are learning about new addresses, > > > switch ports attached to the bridge would see duplicate ARP frames > > > because both entities would attempt to send them. > > > > > > Fixes: 5037d532b83d ("net: dsa: add Broadcom tag RX/TX handler") > > > Reported-by: Maxime Bizon > > > Signed-off-by: Florian Fainelli > > > Reviewed-by: Vivien Didelot > > > Signed-off-by: David S. Miller > > > Signed-off-by: Greg Kroah-Hartman > > > --- > > > net/dsa/tag_brcm.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > --- a/net/dsa/tag_brcm.c > > > +++ b/net/dsa/tag_brcm.c > > > @@ -84,6 +84,8 @@ static struct sk_buff *brcm_tag_xmit(str > > > brcm_tag[2] = BRCM_IG_DSTMAP2_MASK; > > > brcm_tag[3] = (1 << p->port) & BRCM_IG_DSTMAP1_MASK; > > > > > > + skb->offload_fwd_mark = 1; > > > > This is incorrectly placed, the assignment should be in brcm_tag_rcv(). > > It looks like only linux-4.9.y is affected. Sorry for not noticing this > > earlier. Do you want me to submit a correcting patch? > > Yes please, that would make it easier for me. And you already did that, thanks!