net: dsa: sja1105: Add P/Q/R/S support for dynamic L2 lookup operations
authorVladimir Oltean <olteanv@gmail.com>
Sun, 2 Jun 2019 21:11:58 +0000 (00:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2019 18:49:19 +0000 (11:49 -0700)
commit10c3be6526f58221cfcdd1773aa5382e3630000b
tree63e1780867604b22e2a58b9d147efe0537536213
parent9dfa69118f12d6c67d34f90bfd9a825a908d5f60
net: dsa: sja1105: Add P/Q/R/S support for dynamic L2 lookup operations

These are needed in order to implement the switchdev FDB callbacks.

Compared to the E/T generation, not only the ABI (bit offsets) is
different, but also the introduction of the HOSTCMD field which permits
O(1) TCAM search for an FDB entry.  Make use of the newly introduce
OP_SEARCH to permit that.  It will be used while adding and deleting an
FDB entry (to see whether it exists or not).

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