net: dsa: Fix duplicate frames flooded by learning
PATCH 1/1 net: dsa: Fix duplicate frames flooded by learning
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 <[email protected]>
Signed-off-by Florian Fainelli <[email protected]>
--- net/dsa/tag_brcm.c | 2 ++ 1 file changed, 2 insertions(+)
net/dsa/tag_brcm.c +2 -0
@@ -140,6 +140,8 @@ static struct sk_buff *brcm_tag_rcv_ll(struct sk_buff *skb,/* Remove Broadcom tag and update checksum */ skb_pull_rcsum (skb,BRCM_TAG_LEN ); + skb->offload_fwd_mark =1 ; + return skb; }#endif
Signature · 1 line
2.19.1
Quoted 7 lines · Florian Fainelli
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 <[email protected]>Signed-off-by Florian Fainelli <[email protected]>
Reviewed-by Vivien Didelot <[email protected]>
David Miller
maintainerFrom: Florian Fainelli <[email protected]>
Date: Sun, 22 Mar 2020 13:58:50 -0700
Quoted 7 lines
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 <[email protected]>Signed-off-by Florian Fainelli <[email protected]>
Applied and queued up for -stable.