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>
Showing
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c 10 additions, 11 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 1 addition, 1 deletion...s/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h 6 additions, 4 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h
Loading
Please register or sign in to comment