WSL2-Linux-Kernel/drivers/net/dsa/microchip
Arun Ramadoss 36c0d93501 net: dsa: microchip: ksz9477: fix fdb_dump last invalid entry
In the ksz9477_fdb_dump function it reads the ALU control register and
exit from the timeout loop if there is valid entry or search is
complete. After exiting the loop, it reads the alu entry and report to
the user space irrespective of entry is valid. It works till the valid
entry. If the loop exited when search is complete, it reads the alu
table. The table returns all ones and it is reported to user space. So
bridge fdb show gives ff:ff:ff:ff:ff:ff as last entry for every port.
To fix it, after exiting the loop the entry is reported only if it is
valid one.

Fixes: b987e98e50 ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220816105516.18350-1-arun.ramadoss@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-17 12:09:01 -07:00
..
Kconfig net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00
Makefile net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00
ksz8.h net: dsa: microchip: remove the struct ksz8 2022-06-29 13:47:59 +01:00
ksz8795.c net: dsa: microchip: add support for phylink mac config 2022-07-27 09:39:17 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8795: use common xmii function 2022-07-27 09:39:17 +01:00
ksz8863_smi.c net: dsa: microchip: remove the struct ksz8 2022-06-29 13:47:59 +01:00
ksz9477.c net: dsa: microchip: ksz9477: fix fdb_dump last invalid entry 2022-08-17 12:09:01 -07:00
ksz9477.h net: dsa: microchip: move ksz_dev_ops to ksz_common.c 2022-06-24 11:31:44 +01:00
ksz9477_i2c.c net: dsa: microchip: remove the ksz8/ksz9477_switch_register 2022-06-24 11:31:44 +01:00
ksz9477_reg.h net: dsa: microchip: ksz9477: use common xmii function 2022-07-27 09:39:17 +01:00
ksz_common.c net: dsa: microchip: add support for phylink mac config 2022-07-27 09:39:17 +01:00
ksz_common.h net: dsa: microchip: add support for phylink mac config 2022-07-27 09:39:17 +01:00
ksz_spi.c net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids' 2022-07-18 11:29:30 +01:00
lan937x.h net: dsa: microchip: add support for phylink mac config 2022-07-27 09:39:17 +01:00
lan937x_main.c net: dsa: microchip: add support for phylink mac config 2022-07-27 09:39:17 +01:00
lan937x_reg.h net: dsa: microchip: apply rgmii tx and rx delay in phylink mac config 2022-07-27 09:39:17 +01:00