OSDN Git Service

net: dsa: microchip: ksz8: Separate static MAC table operations for code reuse
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 4 Apr 2023 10:18:36 +0000 (12:18 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Apr 2023 09:34:45 +0000 (11:34 +0200)
commitf6636ff69ec4f2c94a5ee1d032b21cfe1e0a5678
tree2cc83e656150a5ad0602dc3a104f0794ccd9135c
parentb536f32b5b034f592df0f0ba129ad59fa0f3e532
net: dsa: microchip: ksz8: Separate static MAC table operations for code reuse

Move static MAC table operations to separate functions in order to reuse
the code for add/del_fdb. This is needed to address kernel warnings
caused by the lack of fdb add function support in the current driver.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/microchip/ksz8795.c