aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorAlex Vesker <[email protected]>2019-11-10 15:39:36 +0200
committerSaeed Mahameed <[email protected]>2019-11-20 12:33:05 -0800
commit21586a0fc44caf43c5ac5df9bb5620fdfb95ba92 (patch)
treea4814052516f452bd8fcb41a1fde1dc24941942b /lib/mpi/mpi-mul.c
parent83e79489135bdf13590ad09f3341f9ef509c2cf9 (diff)
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 <[email protected]> Reviewed-by: Erez Shitrit <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions