]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13a26427b1a77cbdc7b62f358bd7b9a6634da8e0
tree63e1780867604b22e2a58b9d147efe0537536213
parent3112eca63a0758919709e9c19383a3960bcb7e0c
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