realtek: cleanup rtl83{8x,9x}_enable_learning/flood
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 17 Sep 2022 04:30:05 +0000 (13:30 +0900)
committerSander Vanheule <sander@svanheule.net>
Sat, 8 Oct 2022 09:05:03 +0000 (11:05 +0200)
commit629f2de1a772bbfc6bbc37a3aacb67805dc9fb39
treeddc8fa594dce778991abb87f4c1edb8072838680
parentb11b56e8a840471ed0cca97f43f30316468acc35
realtek: cleanup rtl83{8x,9x}_enable_learning/flood

In *_enable_learning() only address learning should be configured, so
remove enabling forwarding. Forwarding is configured by the respective
*_enable_flood() functions.

Clean up both functions for RTL838x and RTL839x, and fix the comment on
the number of entries.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
[squash RTL838x, RTL839x changes]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl838x.c
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl839x.c