]> 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)
commit9c26407e04a9b3f6dc7cbce2b4d6b710047098c9
tree280665825ed865f8e84500da867202beb3e189ef
parente568220ff10936881ce9d2b1d5133cb3ba1d05fb
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: c68b8fbe7da1 ("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