Lines Matching refs:new_tree
857 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vr_lpm_tree_replace() argument
862 fib->lpm_tree = new_tree; in mlxsw_sp_vr_lpm_tree_replace()
863 mlxsw_sp_lpm_tree_hold(new_tree); in mlxsw_sp_vr_lpm_tree_replace()
864 err = mlxsw_sp_vr_lpm_tree_bind(mlxsw_sp, fib, new_tree->id); in mlxsw_sp_vr_lpm_tree_replace()
871 mlxsw_sp_lpm_tree_put(mlxsw_sp, new_tree); in mlxsw_sp_vr_lpm_tree_replace()
878 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vrs_lpm_tree_replace() argument
882 u8 old_id, new_id = new_tree->id; in mlxsw_sp_vrs_lpm_tree_replace()
895 new_tree); in mlxsw_sp_vrs_lpm_tree_replace()
900 memcpy(new_tree->prefix_ref_count, old_tree->prefix_ref_count, in mlxsw_sp_vrs_lpm_tree_replace()
901 sizeof(new_tree->prefix_ref_count)); in mlxsw_sp_vrs_lpm_tree_replace()
902 mlxsw_sp->router->lpm.proto_trees[proto] = new_tree; in mlxsw_sp_vrs_lpm_tree_replace()