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

The PERERP register configures the region eRPs. It can be used, for
example, to enable lookup in the C-TCAM in addition to the A-TCAM.

To be able to perform a lookup in the C-TCAM we need to "use" the eRP
table. This is done by marking the pointer as valid, but zeroing the eRP
table vector.

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