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=-6.8 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,USER_AGENT_GIT autolearn=unavailable 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 C4DF3C43331 for ; Wed, 1 Apr 2020 16:51:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6FC2D2063A for ; Wed, 1 Apr 2020 16:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759877; bh=IVevopt4tpFjF//N5RzWcfrUTFmM9C5XwhNWWFkXLCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GCPRzgCPaFne0qc5jyr8yWEVTDW1o0pnnPYQSY7Uq9bzzZUjEZiGcwb2gYdAmiuWT Rm5/0xCFDr1/jcS9nag9Axf7x+MhlAMCa6uJLGV9niXt17ETxczLoA/ykQ3r0nxmCy yZQIp5dyepVi0Q+yH/pby/G0T7KvZeszoGv/sWEY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388995AbgDAQhu (ORCPT ); Wed, 1 Apr 2020 12:37:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:37170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389013AbgDAQht (ORCPT ); Wed, 1 Apr 2020 12:37:49 -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 AB81620772; Wed, 1 Apr 2020 16:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759069; bh=IVevopt4tpFjF//N5RzWcfrUTFmM9C5XwhNWWFkXLCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y1UkRSupc489B8IFJaGxTevKyb7NpsB6THnzOckZIFNCMRaKE1BcW1OmyX9JB1aHX s4wekwZJPUVxyFT7XH8S6uCabRH7MxhImyq9aa6Xh+foZA50nM6h6s2zdSGPLXWmMn eJMAYzVKklSOHaAthPKfq7OHFWIe4LXFH20q/yMA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Bizon , Florian Fainelli , Vivien Didelot , "David S. Miller" Subject: [PATCH 4.9 040/102] net: dsa: Fix duplicate frames flooded by learning Date: Wed, 1 Apr 2020 18:17:43 +0200 Message-Id: <20200401161540.401786749@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161530.451355388@linuxfoundation.org> References: <20200401161530.451355388@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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; + return skb; out_free: