mlxsw: reg: Add Policy-Engine Region Configuration Register
authorIdo Schimmel <idosch@mellanox.com>
Wed, 18 Jul 2018 08:14:38 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:13:13 +0000 (02:13 +0900)
commit481662a8a33645cd0c6568c21759f9ce39266c7f
tree4fc68f435401cc6d0714259efc6ce3f4b0cf91d8
parent3390787b61d85bdc793bd5f42642525dc24684ad
mlxsw: reg: Add Policy-Engine Region Configuration Register

The PERCR register configures the region parameters such as whether to
consult the bloom filter before performing a lookup using a specific
eRP.

For C-TCAM only usage we don't need to accurately set the master mask.
Instead, we can set all of its bits to make sure all the extracted keys
are actually used.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h