openwrt-mirror/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx
Harshal Gohel f6603de71d realtek: rtl93xx: Add learning and flooding enable/disable
Both RTL930x and RTL931x were missing the code to support enabling and
disabling MAC address learning and unknown unicast flooding on a per-port
basis.

* rtl93*x_enable_learning() allows toggling of dynamic MAC learning on
  individual ports by modifying the L2 learning constraint control
  register.
* rtl93*x_enable_flood() provides the ability to control unknown unicast
  flooding behavior, disabling forwarding when set. If it is enabled, it
  will just forward it. If it is disabled, packets will simply be dropped.

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19581
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-08-08 13:56:58 +02:00
..
common.c realtek: rtl931x: Sync family parameters with RTL930x 2025-08-07 18:40:30 +02:00
debugfs.c
dsa.c realtek: dsa: rtl83xx: flush scheduled work on removal 2025-08-07 17:29:14 +02:00
Kconfig
Makefile
qos.c
rtl83xx.h realtek: rtl930x: Fetch link status for all ports in switch IRQ 2025-08-07 16:01:51 +02:00
rtl838x.c realtek: mdio: RTL838x: move functions over to bus 2025-07-26 15:46:31 +02:00
rtl838x.h realtek: rtl93xx: Add learning and flooding enable/disable 2025-08-08 13:56:58 +02:00
rtl839x.c realtek: RTL839x: reorganize mdio functions and SerDes register layout 2025-08-04 10:43:17 +02:00
rtl930x.c realtek: rtl93xx: Add learning and flooding enable/disable 2025-08-08 13:56:58 +02:00
rtl931x.c realtek: rtl93xx: Add learning and flooding enable/disable 2025-08-08 13:56:58 +02:00
tc.c