mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
net/mlx5: Compare with old_dest param to modify rule destination
The rule destination must be compared with the old_dest passed in. Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/24adc60d05d7492359ba343c6da1ebbe9fe284f6.1690802064.git.leon@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c6c2bf5db4
commit
1632649d2d
|
|
@ -1066,7 +1066,7 @@ int mlx5_modify_rule_destination(struct mlx5_flow_handle *handle,
|
|||
}
|
||||
|
||||
for (i = 0; i < handle->num_rules; i++) {
|
||||
if (mlx5_flow_dests_cmp(new_dest, &handle->rule[i]->dest_attr))
|
||||
if (mlx5_flow_dests_cmp(old_dest, &handle->rule[i]->dest_attr))
|
||||
return _mlx5_modify_rule_destination(handle->rule[i],
|
||||
new_dest);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user