diff options
author | Ido Schimmel | 2018-07-25 08:24:01 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-26 01:46:01 +0200 |
commit | 57e56d369914996ed81581da04af7b04a256a20a (patch) | |
tree | 7892e9b60997af9415794677c43f67eaf432c4af /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | |
parent | mlxsw: spectrum_acl: Add A-TCAM initialization (diff) | |
download | kernel-qcow2-linux-57e56d369914996ed81581da04af7b04a256a20a.tar.gz kernel-qcow2-linux-57e56d369914996ed81581da04af7b04a256a20a.tar.xz kernel-qcow2-linux-57e56d369914996ed81581da04af7b04a256a20a.zip |
mlxsw: spectrum_acl: Encapsulate C-TCAM region in A-TCAM region
In Spectrum-2 the C-TCAM is only used for rules that can't fit in the
A-TCAM due to a limited number of masks per A-TCAM region.
In addition, rules inserted into the C-TCAM may affect rules residing in
the A-TCAM, by clearing their C-TCAM prune bit.
The two regions are thus closely related and can be thought of as if the
C-TCAM region is encapsulated in the A-TCAM one.
Change the data structures to reflect that before introducing A-TCAM
support and make C-TCAM region initialization part of the A-TCAM region
initialization sequence.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c')
0 files changed, 0 insertions, 0 deletions