Unverified Commit 84a047df authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8451 [sync] PR-8342: net/mlx5: Properly link new fs rules into the tree

parents 2f92f339 9b553c21
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1619,8 +1619,9 @@ static struct mlx5_flow_handle *add_rule_fg(struct mlx5_flow_group *fg,
	}
	trace_mlx5_fs_set_fte(fte, false);

	/* Link newly added rules into the tree. */
	for (i = 0; i < handle->num_rules; i++) {
		if (refcount_read(&handle->rule[i]->node.refcount) == 1) {
		if (!handle->rule[i]->node.parent) {
			tree_add_node(&handle->rule[i]->node, &fte->node);
			trace_mlx5_fs_add_rule(handle->rule[i]);
		}