net/mlx5: Compare sampler flow destination ID in fs_core
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / fs_core.c
index b8617458a3fd08e08f1972d8eb3c604a6f49642e..d7bf0a3e4a5291bc741c028a984b108374210108 100644 (file)
@@ -1504,7 +1504,9 @@ static bool mlx5_flow_dests_cmp(struct mlx5_flow_destination *d1,
                    (d1->type == MLX5_FLOW_DESTINATION_TYPE_TIR &&
                     d1->tir_num == d2->tir_num) ||
                    (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE_NUM &&
-                    d1->ft_num == d2->ft_num))
+                    d1->ft_num == d2->ft_num) ||
+                   (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_SAMPLER &&
+                    d1->sampler_id == d2->sampler_id))
                        return true;
        }