]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5e47d57bc41c155c1b3c0de48276d5008dff4a5
treebaadcb1ddf4375f27f672ed827febfb8e92fd5f1
parent5b9d95a539a387d3fc7215264919d8e1bccab11d
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