openwrt/target/linux/realtek/files-5.10
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
..
arch/mips realtek: use MIPS fw_init_cmdline() 2022-10-08 11:05:02 +02:00
Documentation/devicetree/bindings realtek: timer driver: documentation 2022-10-23 22:33:08 +02:00
drivers realtek: set up L2 table entries properly 2022-10-26 09:59:24 +02:00
include/dt-bindings/clock realtek: add PLL DT binding includes 2022-08-28 11:03:34 +02:00