realtek: fix writing/deletion of CAM entries
authorJan Hoffmann <jan@3e8.eu>
Sat, 6 May 2023 23:05:30 +0000 (01:05 +0200)
committerSander Vanheule <sander@svanheule.net>
Sun, 7 May 2023 17:08:59 +0000 (19:08 +0200)
commit81931756e1490547f8a6e1ef510b52af28c60909
tree2080c6e13296341a3099fc3574e16b1a43a685d6
parent8ea27bb959b2181a3f3ca08d3f11b2a116960c87
realtek: fix writing/deletion of CAM entries

Actually use the index returned by rtl83xx_find_l2_cam_entry.

Fixes: cde31976e375 ("realtek: Add support for Layer 2 Multicast")
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/dsa.c