[PATCH net-next v1 0/7] net: dsa: microchip: ksz8: Enhance static MAC table operations and error handling

From: Oleksij Rempel
Date: Tue Apr 04 2023 - 06:19:35 EST


This patch series improves the Microchip ksz8 driver by refactoring
static MAC table operations for code reuse, implementing add/del_fdb
functions, and making better use of error values in
ksz8_r_sta_mac_table() and ksz8_w_sta_mac_table(). The changes aim to
provide a more robust and maintainable driver with improved error
handling.

Oleksij Rempel (7):
net: dsa: microchip: ksz8: Separate static MAC table operations for
code reuse
net: dsa: microchip: ksz8: Implement add/del_fdb and use static MAC
table operations
net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static
net: dsa: microchip: ksz8_r_sta_mac_table(): Avoid using error code
for empty entries
net: dsa: microchip: ksz8_r_sta_mac_table(): Utilize error values from
read/write functions
net: dsa: microchip: Make ksz8_w_sta_mac_table() static
net: dsa: microchip: Utilize error values in ksz8_w_sta_mac_table()

drivers/net/dsa/microchip/ksz8.h | 8 +-
drivers/net/dsa/microchip/ksz8795.c | 179 ++++++++++++++++---------
drivers/net/dsa/microchip/ksz_common.c | 2 +
3 files changed, 121 insertions(+), 68 deletions(-)

--
2.39.2