]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Make room for P/Q/R/S FDB operations
authorVladimir Oltean <olteanv@gmail.com>
Sun, 2 Jun 2019 21:11:57 +0000 (00:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 18:49:19 +0000 (11:49 -0700)
commit3112eca63a0758919709e9c19383a3960bcb7e0c
treefd8b94b488e50ab0e777c21ad59db21a4092160a
parentde0fda7ae6d0f09330f7262aceb38f1ed27959d0
net: dsa: sja1105: Make room for P/Q/R/S FDB operations

The DSA callbacks were written with the E/T (first generation) in mind,
which is quite different.

For P/Q/R/S completely new implementations need to be provided, which
are held as function pointers in the priv->info structure.  We are
taking a slightly roundabout way for this (a function from
sja1105_main.c reads a structure defined in sja1105_spi.c that
points to a function defined in sja1105_main.c), but it is what it is.

The FDB dump callback works for both families, hence no function pointer
for that.

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