net: dsa: microchip: ksz8795: use port_cnt instead of TOTOAL_PORT_NUM

To get the driver working with other chips using different port counts
the dyn_mac_table should be flushed depending on the amount of available
ports. This patch remove the extra define TOTOAL_PORT_NUM and is
making use of the dynamic port_cnt variable instead.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Michael Grzeschik 2020-12-01 21:45:05 +01:00 • committed by Jakub Kicinski
commit 241ed719bc
2 changed files with 2 additions and 4 deletions