Lines Matching refs:new_tree
861 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vr_lpm_tree_replace() argument
866 fib->lpm_tree = new_tree; in mlxsw_sp_vr_lpm_tree_replace()
867 mlxsw_sp_lpm_tree_hold(new_tree); in mlxsw_sp_vr_lpm_tree_replace()
868 err = mlxsw_sp_vr_lpm_tree_bind(mlxsw_sp, fib, new_tree->id); in mlxsw_sp_vr_lpm_tree_replace()
875 mlxsw_sp_lpm_tree_put(mlxsw_sp, new_tree); in mlxsw_sp_vr_lpm_tree_replace()
882 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vrs_lpm_tree_replace() argument
886 u8 old_id, new_id = new_tree->id; in mlxsw_sp_vrs_lpm_tree_replace()
899 new_tree); in mlxsw_sp_vrs_lpm_tree_replace()
904 memcpy(new_tree->prefix_ref_count, old_tree->prefix_ref_count, in mlxsw_sp_vrs_lpm_tree_replace()
905 sizeof(new_tree->prefix_ref_count)); in mlxsw_sp_vrs_lpm_tree_replace()
906 mlxsw_sp->router->lpm.proto_trees[proto] = new_tree; in mlxsw_sp_vrs_lpm_tree_replace()