]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8199e79b7c074aff01ff1a9814712ca34d3681ac
tree280665825ed865f8e84500da867202beb3e189ef
parente262bfdc9a46a190ab5c25fc6368fa97de4969ca
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: d36598ad16a5 ("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