]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Include delta bits into hashtable key
authorJiri Pirko <jiri@mellanox.com>
Wed, 30 Jan 2019 08:58:33 +0000 (08:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 18:00:40 +0000 (10:00 -0800)
commita571d0c9417b5a5ab97422e1858b236188a8d193
treeb85a42ff4a2f6ca22a5c76b3830061fdc5ff63eb
parent0d48b8001d50920832185f6324715d6ecd790422
mlxsw: spectrum_acl: Include delta bits into hashtable key

Currently only ERP mask masked bits in key are considered for
the hashtable key. That leads to false negative collisions
and fallbacks to C-TCAM in case two keys differ only in delta bits.

Fix this by taking full encoded key as a hashtable key,
including delta bits.

Reported-by: Nir Dotan <nird@mellanox.com>
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/spectrum_acl_atcam.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h