author | Alex Vesker <valex@mellanox.com> | |
Thu, 31 Oct 2019 13:24:59 +0000 (15:24 +0200) | ||
committer | Saeed Mahameed <saeedm@mellanox.com> | |
Wed, 20 Nov 2019 20:33:05 +0000 (12:33 -0800) | ||
commit | 83e79489135bdf13590ad09f3341f9ef509c2cf9 | |
tree | 1c2e9e6d003e2dcb80c1be64e645ea690dde32b3 | tree | snapshot (tar.xz tar.gz zip) |
parent | 829969956f97e880dd01086be47747226e48a3f0 | commit | diff |
net/mlx5: DR, Skip rehash for tables with byte mask zero
The byte mask fields affect on the hash index distribution,
when the byte mask is zero, the hash calculation will always
be equal to the same index.
To avoid unneeded rehash of hash tables mark the table to skip
rehash.
This is needed by the next patch which will limit table rehash
to reduce memory consumption.
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>
The byte mask fields affect on the hash index distribution,
when the byte mask is zero, the hash calculation will always
be equal to the same index.
To avoid unneeded rehash of hash tables mark the table to skip
rehash.
This is needed by the next patch which will limit table rehash
to reduce memory consumption.
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>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c | diff | blob | history |