]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Implement is_static for FDB entries on E/T
authorVladimir Oltean <olteanv@gmail.com>
Tue, 25 Jun 2019 23:39:42 +0000 (02:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:03:22 +0000 (11:03 -0700)
commitd36598ad16a554d0b16c4c7e2ba63a741a216d00
tree65700bb2b5bb5cfd133e5daa0fc92c946a4915a7
parentd520fcbe3ab1b555c6e878cb06d33c1f72d4fa82
net: dsa: sja1105: Implement is_static for FDB entries on E/T

The first generation switches don't tell us through the dynamic config
interface whether the dumped FDB entries are static or not (the LOCKEDS
bit from P/Q/R/S).

However, now that we're keeping a mirror of all 'bridge fdb' commands in
the static config, this is an opportunity to compare a dumped FDB entry
to the driver's private database.  After all, what makes an entry static
is that *we* added it.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c