1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core/steering
Alex Vesker 21586a0fc4 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: 41d0707415 ("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>
2019-11-20 12:33:05 -08:00
..
Makefile net/mlx5: DR, Add CONFIG_MLX5_SW_STEERING for software steering support 2019-09-03 12:54:23 -07:00
dr_action.c net/mlx5: DR, Fix memory leak in modify action destroy 2019-11-06 14:03:54 -08:00
dr_cmd.c
dr_crc32.c net/mlx5: DR, Add Steering entry (STE) utilities 2019-09-03 12:54:21 -07:00
dr_domain.c net/mlx5: DR, Remove redundant dev_name print from err log 2019-09-05 14:44:43 -07:00
dr_fw.c net/mlx5: DR, Add required FW steering functionality 2019-09-03 12:54:22 -07:00
dr_icm_pool.c mlx5: avoid 64-bit division in dr_icm_pool_mr_create() 2019-10-02 11:08:20 -04:00
dr_matcher.c net/mlx5: DR, Allow matching on vport based on vhca_id 2019-09-24 12:38:07 +03:00
dr_rule.c net/mlx5: DR, Limit STE hash table enlarge based on bytemask 2019-11-20 12:33:05 -08:00
dr_send.c net/mlx5: DR, Fix invalid EQ vector number on CQ creation 2019-11-20 12:33:05 -08:00
dr_ste.c net/mlx5: DR, Limit STE hash table enlarge based on bytemask 2019-11-20 12:33:05 -08:00
dr_table.c net/mlx5: DR, Expose steering table functionality 2019-09-03 12:54:21 -07:00
dr_types.h net/mlx5: DR, Allow matching on vport based on vhca_id 2019-09-24 12:38:07 +03:00
fs_dr.c net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
fs_dr.h net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
mlx5_ifc_dr.h
mlx5dr.h net/mlx5: DR, Expose APIs for direct rule managing 2019-09-03 12:54:23 -07:00