realtek: Trap all frames with switch as destination to CPU-port
authorBirger Koblitz <git@birger-koblitz.de>
Sun, 24 Apr 2022 18:37:33 +0000 (20:37 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 14 May 2022 19:26:14 +0000 (21:26 +0200)
commit7b4702afef64b71c6c103b962535d390f3b7f240
treea15f5b7f454014c742a74f016ff01e18bc23a69d
parent1c6a179e1ad94fe08663f9dc267d76e7cc525683
realtek: Trap all frames with switch as destination to CPU-port

This fixes a bug where frames sent to the switch itself were
flooded to all ports unless the MAC address of the CPU-port
was learned otherwise.

Tested-by: Wenli Looi <wlooi@ucalgary.ca>
Tested-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
[fix code formatting]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit 98bb26f9f762408e42bd8a906f0eb01c41ada10a)
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c