net/mlx5: DR, Fix getting incorrect prev node in ste_free
authorAlex Vesker <valex@mellanox.com>
Thu, 19 Sep 2019 08:24:19 +0000 (11:24 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Sep 2019 09:38:07 +0000 (12:38 +0300)
commit48cbde4bd2c7c028a7205cb83386bb345c315adc
tree41a7a5cd8b898a77b28210e2f80d49667ac586a6
parentcc5fd15fc5578e5a3da13f6b14b42ebef5ad42c2
net/mlx5: DR, Fix getting incorrect prev node in ste_free

When we free an STE and the STE is in the middle of collision
list, the prev_ste was obtained incorrectly from the list.
To avoid such issues list_entry calls replaced with standard list API.

Fixes: 26d688e33f88 ("net/mlx5: DR, Add Steering entry (STE) utilities")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c