]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Skip rehash for tables with byte mask zero
authorAlex Vesker <valex@mellanox.com>
Thu, 31 Oct 2019 13:24:59 +0000 (15:24 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:05 +0000 (12:33 -0800)
commit5b089a941a82ac9e10b1e0dcc6d867f8e75e6efd
tree1c2e9e6d003e2dcb80c1be64e645ea690dde32b3
parent583083f8319019cb18e001efc84c8a796ac463e5
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: e49297b3a5b0 ("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