diff options
author | Alex Vesker <valex@mellanox.com> | 2019-11-10 16:39:36 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-11-20 23:33:05 +0300 |
commit | 21586a0fc44caf43c5ac5df9bb5620fdfb95ba92 (patch) | |
tree | a4814052516f452bd8fcb41a1fde1dc24941942b /crypto/lzo.c | |
parent | 83e79489135bdf13590ad09f3341f9ef509c2cf9 (diff) | |
download | linux-21586a0fc44caf43c5ac5df9bb5620fdfb95ba92.tar.xz |
net/mlx5: DR, Limit STE hash table enlarge based on bytemask
When an ste hash table has too many collision we enlarge it
to a bigger hash table (rehash). Rehashing collision improvement
depends on the bytemask value. The more 1 bits we have in bytemask
means better spreading in the table.
Without this fix tables can grow in size without providing any
improvement which can lead to memory depletion and failures.
This patch will limit table rehash to reduce memory and improve
the performance.
Fixes: 41d07074154c ("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'crypto/lzo.c')
0 files changed, 0 insertions, 0 deletions