rtl83xx: fix STP by trapping BPDUs
authorRudolf Vesely <i@rudolfvesely.com>
Mon, 2 Oct 2023 06:51:19 +0000 (06:51 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Oct 2023 12:14:50 +0000 (14:14 +0200)
commit83e681e69e846bb1094fb7c6676e6e58334d57ed
tree9494c0cce084e8e3ba0f85894a580237d02d63e3
parent5b00873f5d14f623185388251e46850940c50383
rtl83xx: fix STP by trapping BPDUs

Fix Spanning Tree Protocol (STP) by changing COPY2CPU which currently
makes switch to ignore Bridge Protocol Data Units (BPDUs).

Tested on Zyxel GS1900-8, 24 and 48.

Signed-off-by: Rudolf Vesely <i@rudolfvesely.com>
[ improve commit description and add new line in different sections ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 41fcc617f94601072d304f2f68e12cf1dd058707)
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/dsa.c