net: dsa: sja1105: Plug in support for TCAM searches via the dynamic interface
authorVladimir Oltean <olteanv@gmail.com>
Sun, 2 Jun 2019 21:11:56 +0000 (00:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 18:49:19 +0000 (11:49 -0700)
commit90c96cca351a0d0bfd24a56a516e046a23684677
tree45472949f75ec667120ac0c15ba9fde3440e9088
parent9c5098d91dfe32ee420bedec7980197f9e6e2bce
net: dsa: sja1105: Plug in support for TCAM searches via the dynamic interface

Only a single dynamic configuration table of the SJA1105 P/Q/R/S
supports this operation: the FDB.

To keep the existing structure in place (sja1105_dynamic_config_read and
sja1105_dynamic_config_write) and not introduce any new function, a
convention is made for sja1105_dynamic_config_read that a negative index
argument denotes a search for the entry provided as argument.

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_dynamic_config.h