[PATCH v2 0/4] realtek: fix multiple issues with L2 forwarding

Jan Hoffmann jan at 3e8.eu
Sat May 6 10:28:51 PDT 2023


This series fixes several bugs that can result in packets being
forwarded incorrectly. The port isolation and VLAN issues probably
remained unnoticed so far, because they only manifest after a port
leaves a bridge, or when an existing VLAN membership is changed.

v2:
 - Fixed checkpatch.pl warnings
 - Removed comment about RTL838X_PORT_ISO_CTRL, as the traffic_set
   method is now used instead of accessing the register directly
 - Added Fixes tags for first commit

Jan Hoffmann (4):
  realtek: properly update port masks when port leaves bridge
  realtek: initialize port masks to match the default state
  realtek: fix standalone ports in presence of static fdb entries
  realtek: handle changed flags in VLAN configuration

 .../files-5.10/drivers/net/dsa/rtl83xx/dsa.c  | 90 +++++++++++--------
 .../drivers/net/dsa/rtl83xx/rtl838x.c         | 10 +++
 .../drivers/net/dsa/rtl83xx/rtl838x.h         | 14 +++
 .../drivers/net/dsa/rtl83xx/rtl839x.c         | 11 +++
 .../files-5.15/drivers/net/dsa/rtl83xx/dsa.c  | 86 +++++++++++-------
 .../drivers/net/dsa/rtl83xx/rtl838x.c         | 10 +++
 .../drivers/net/dsa/rtl83xx/rtl838x.h         | 14 +++
 .../drivers/net/dsa/rtl83xx/rtl839x.c         | 11 +++
 8 files changed, 175 insertions(+), 71 deletions(-)

-- 
2.40.0




More information about the openwrt-devel mailing list