summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
diff options
context:
space:
mode:
authorIdo Schimmel2018-07-25 08:24:01 +0200
committerDavid S. Miller2018-07-26 01:46:01 +0200
commit57e56d369914996ed81581da04af7b04a256a20a (patch)
tree7892e9b60997af9415794677c43f67eaf432c4af /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
parentmlxsw: spectrum_acl: Add A-TCAM initialization (diff)
downloadkernel-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