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,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 6654AC43331 for ; Wed, 1 Apr 2020 16:37:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D2D8206F8 for ; Wed, 1 Apr 2020 16:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759074; bh=IVevopt4tpFjF//N5RzWcfrUTFmM9C5XwhNWWFkXLCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=s+U/6euhuKL4jhD1DAoSWSBW5nD3wCTzoqr7ApXQHFGR/iRrIEcOYiOokVePH75wE BgZfIuej0/WcgZMT6aXO9j1UU7dk87m09gJftRYkFY53i1bmHr1FyKhhprkXXe7bFF vbiLzJcjnEpobnEYQEXv8wQytBwVmG+VLd60HIok= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387517AbgDAQhx (ORCPT ); Wed, 1 Apr 2020 12:37:53 -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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: