Skip to content

Commit 1632649

Browse files
Jianbo Liukuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/24adc60d05d7492359ba343c6da1ebbe9fe284f6.1690802064.git.leon@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c6c2bf5 commit 1632649

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ int mlx5_modify_rule_destination(struct mlx5_flow_handle *handle,
10661066
}
10671067

10681068
for (i = 0; i < handle->num_rules; i++) {
1069-
if (mlx5_flow_dests_cmp(new_dest, &handle->rule[i]->dest_attr))
1069+
if (mlx5_flow_dests_cmp(old_dest, &handle->rule[i]->dest_attr))
10701070
return _mlx5_modify_rule_destination(handle->rule[i],
10711071
new_dest);
10721072
}

0 commit comments

Comments
 (0)