net: dsa: Fix duplicate frames flooded by learning
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 22 Mar 2020 20:58:50 +0000 (13:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 15:20:29 +0000 (17:20 +0200)
commit5e845dc62f383b656c0da16d65e4d4d0b1024d34
tree881b23054a930b42c1ebf44a149ec6c592e0ebbf
parent52d58912962eaf8d184ab785b7e4245f9223c2b6
net: dsa: Fix duplicate frames flooded by learning

[ 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 <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dsa/tag_brcm.c