]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: ocelot: the MAC table on Felix is twice as large
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 3 May 2020 22:20:26 +0000 (01:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:15:24 +0000 (17:15 -0700)
commit9d8ac12cc28074382345ca6fc086ff056358ddc3
tree98fe33ca24e78f974bc88b13fa8c3f6d3a56278d
parenta65d56291c74f1608ae7c4ba5118754aed0ab2eb
net: dsa: ocelot: the MAC table on Felix is twice as large

When running 'bridge fdb dump' on Felix, sometimes learnt and static MAC
addresses would appear, sometimes they wouldn't.

Turns out, the MAC table has 4096 entries on VSC7514 (Ocelot) and 8192
entries on VSC9959 (Felix), so the existing code from the Ocelot common
library only dumped half of Felix's MAC table. They are both organized
as a 4-way set-associative TCAM, so we just need a single variable
indicating the correct number of rows.

Fixes: 620a56f56947 ("net: dsa: ocelot: add driver for Felix switch family")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/ocelot/felix.h
drivers/net/dsa/ocelot/felix_vsc9959.c
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_regs.c
include/soc/mscc/ocelot.h