]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b9d95a539a387d3fc7215264919d8e1bccab11d
tree4fc68f435401cc6d0714259efc6ce3f4b0cf91d8
parent6538748ffe00971477f5d51b6c1894e9558fdf77
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