]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Copy all 64B whenever replacing STE in the head of miss-list
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Tue, 22 Sep 2020 01:24:09 +0000 (04:24 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 30 Jan 2021 02:12:58 +0000 (18:12 -0800)
commitd6d2e0f9fd0085d5db686c0f15b59ea8cc87eb00
tree8d6d3fe29b17766a252712adc61462475b60cd11
parent999bcbcf877eeaebc97b78322bf5ae9c2c39201b
net/mlx5: DR, Copy all 64B whenever replacing STE in the head of miss-list

Till now the code assumed that need to copy reduced size of the
ste because the rest is the mask part which shouldn't be changed.
This is not true for all types of HW (like STEv1).
Take all 64B from the new STE and write them in the replaced STE place.
This change will make it easier to handle all STE HW types because we have
all the data that is about to be written into HW.

Signed-off-by: Erez Shitrit <erezsh@nvidia.com>
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c