summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2019-11-10 16:39:36 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-11-20 23:33:05 +0300
commit21586a0fc44caf43c5ac5df9bb5620fdfb95ba92 (patch)
treea4814052516f452bd8fcb41a1fde1dc24941942b /virt
parent83e79489135bdf13590ad09f3341f9ef509c2cf9 (diff)
downloadlinux-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 'virt')
0 files changed, 0 insertions, 0 deletions