]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Enable C-TCAM only mode in eRP core
authorIdo Schimmel <idosch@mellanox.com>
Wed, 25 Jul 2018 06:23:56 +0000 (09:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 23:46:01 +0000 (16:46 -0700)
commit46be0ecb4052097bb1a5f7788c84b07b732b02f6
tree98cae06aa2c785bf33b02c6a911bbeee2b0f1ef8
parent4301f5cff7516262de57b368a883a38107b566a1
mlxsw: spectrum_acl: Enable C-TCAM only mode in eRP core

Currently, no calls are performed into the eRP core, but in order to
make review easier we would like to gradually add these calls.

Have the eRP core initialize a region's master mask to all ones and
allow it to use an empty eRP table. This directs the lookup to the
C-TCAM and allows the C-TCAM only mode to continue working.

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