net: dsa: sja1105: Use the LOCKEDS bit for SJA1105 E/T as well
authorVladimir Oltean <olteanv@gmail.com>
Sun, 4 Aug 2019 22:38:45 +0000 (01:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 21:37:02 +0000 (14:37 -0700)
commit4b7da3d808f91cdad3e34059cd68ba3dfe4c3695
tree280665825ed865f8e84500da867202beb3e189ef
parent6d7c7d948a2e9f87b4e7726dee94c59300e1786b
net: dsa: sja1105: Use the LOCKEDS bit for SJA1105 E/T as well

It looks like the FDB dump taken from first-generation switches also
contains information on whether entries are static or not. So use that
instead of searching through the driver's tables.

Fixes: d763778224ea ("net: dsa: sja1105: Implement is_static for FDB entries on E/T")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_dynamic_config.c
drivers/net/dsa/sja1105/sja1105_main.c