Skip to content

Commit 6f85155

Browse files
kliteynSaeed Mahameed
authored andcommitted
net/mlx5: Compare sampler flow destination ID in fs_core
When comparing sampler flow destinations, in fs_core, consider sampler ID as well. Signed-off-by: Yevgeny Kliteynik <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent ff8744b commit 6f85155

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,9 @@ static bool mlx5_flow_dests_cmp(struct mlx5_flow_destination *d1,
15041504
(d1->type == MLX5_FLOW_DESTINATION_TYPE_TIR &&
15051505
d1->tir_num == d2->tir_num) ||
15061506
(d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM &&
1507-
d1->ft_num == d2->ft_num))
1507+
d1->ft_num == d2->ft_num) ||
1508+
(d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_SAMPLER &&
1509+
d1->sampler_id == d2->sampler_id))
15081510
return true;
15091511
}
15101512

0 commit comments

Comments
 (0)