mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Implement support for FDB and MDB management for the RTL8365MB series
switches.
The hardware supports IVL by keying the unicast forwarding database with
the {MAC, VID, EFID} tuple. The Extended Filtering ID (EFID) is 3 bits
wide, providing 8 unique filtering domains. This driver reserves EFID 0
for standalone ports, effectively limiting the hardware offload to a
maximum of 7 bridges. The multicast database uses a {MAC, VID} key, with
ports from different bridges sharing the same multicast group.
Introduce a mutex lock (l2_lock) to protect concurrent L2 table updates.
Add support for forwarding database operations, including unicast and
multicast entry handling as well as fast aging support.
Set DSA switch flags assisted_learning_on_cpu_port and fdb_isolation.
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Co-developed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://patch.msgid.link/20260606-realtek_forward-v13-7-b9e409687cbe@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
24 lines
637 B
Makefile
24 lines
637 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_NET_DSA_REALTEK) += realtek_dsa.o
|
|
realtek_dsa-objs := rtl83xx.o
|
|
|
|
ifdef CONFIG_NET_DSA_REALTEK_MDIO
|
|
realtek_dsa-objs += realtek-mdio.o
|
|
endif
|
|
|
|
ifdef CONFIG_NET_DSA_REALTEK_SMI
|
|
realtek_dsa-objs += realtek-smi.o
|
|
endif
|
|
|
|
obj-$(CONFIG_NET_DSA_REALTEK_RTL8366RB) += rtl8366.o
|
|
rtl8366-objs := rtl8366-core.o rtl8366rb.o
|
|
ifdef CONFIG_NET_DSA_REALTEK_RTL8366RB_LEDS
|
|
rtl8366-objs += rtl8366rb-leds.o
|
|
endif
|
|
obj-$(CONFIG_NET_DSA_REALTEK_RTL8365MB) += rtl8365mb.o
|
|
rtl8365mb-objs := rtl8365mb_main.o \
|
|
rtl8365mb_table.o \
|
|
rtl8365mb_vlan.o \
|
|
rtl8365mb_l2.o \
|
|
# end of rtl8365mb-objs
|