Lines Matching refs:new_tree
936 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vr_lpm_tree_replace() argument
941 fib->lpm_tree = new_tree; in mlxsw_sp_vr_lpm_tree_replace()
942 mlxsw_sp_lpm_tree_hold(new_tree); in mlxsw_sp_vr_lpm_tree_replace()
943 err = mlxsw_sp_vr_lpm_tree_bind(mlxsw_sp, fib, new_tree->id); in mlxsw_sp_vr_lpm_tree_replace()
950 mlxsw_sp_lpm_tree_put(mlxsw_sp, new_tree); in mlxsw_sp_vr_lpm_tree_replace()
957 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vrs_lpm_tree_replace() argument
961 u8 old_id, new_id = new_tree->id; in mlxsw_sp_vrs_lpm_tree_replace()
974 new_tree); in mlxsw_sp_vrs_lpm_tree_replace()
979 memcpy(new_tree->prefix_ref_count, old_tree->prefix_ref_count, in mlxsw_sp_vrs_lpm_tree_replace()
980 sizeof(new_tree->prefix_ref_count)); in mlxsw_sp_vrs_lpm_tree_replace()
981 mlxsw_sp->router->lpm.proto_trees[proto] = new_tree; in mlxsw_sp_vrs_lpm_tree_replace()