immortalwrt/target/linux/realtek
Jan Hoffmann 2088e440b1 realtek: set up L2 table entries properly
Initialize the data structure using memset to avoid the possibility of
writing garbage values to the hardware.

Always set a valid entry type, which should fix writing unicast entries
on RTL930x.

For unicast entries, set the is_static flag to prevent the switch from
aging them out.

Also set the rvid field for unicast entries. This is not strictly
necessary, as the switch fills it in automatically from a non-zero vid.
However, this makes the code consistent with multicast entry setup.

While at it, reorder the statements and fix some style issues (double
space, comma instead of semicolon at end of statement). Also remove the
unneeded priv parameter and debug print for the multicast entry setup
function.

Fixes: cde31976e3 ("realtek: Add support for Layer 2 Multicast")
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-10-26 09:59:24 +02:00
..
base-files realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
dts-5.10 realtek: timer driver: activate for RTL839X devices 2022-10-23 22:33:08 +02:00
files/firmware/rtl838x_phy
files-5.10 realtek: set up L2 table entries properly 2022-10-26 09:59:24 +02:00
image realtek: use Device prefix for common recipes 2022-09-18 10:12:19 +02:00
patches-5.10 realtek: 5.10: refresh kernel patches 2022-10-25 04:56:16 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: timer driver: activate for RTL838X devices 2022-10-23 22:33:08 +02:00
rtl839x realtek: timer driver: activate for RTL839X devices 2022-10-23 22:33:08 +02:00
rtl930x realtek: disable otto timer for RTL93xx targets 2022-10-23 22:33:08 +02:00
rtl931x realtek: disable otto timer for RTL93xx targets 2022-10-23 22:33:08 +02:00
Makefile realtek: Fix tc default package 2022-03-29 13:43:01 +02:00