]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl93xx: Add learning and flooding enable/disable 19581/head
authorHarshal Gohel <hg@simonwunderlich.de>
Tue, 15 Jul 2025 18:05:41 +0000 (20:05 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 8 Aug 2025 11:56:58 +0000 (13:56 +0200)
commitf6603de71de4d48d79fbb33b07b59bb5aaa233f5
tree09f79e6d73f02973801642132d7e51a4efbc04c2
parent1a235a7f0b6c71d09a3111d518421f889ba80f15
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>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c