Lines Matching refs:new_tree
967 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vr_lpm_tree_replace() argument
972 fib->lpm_tree = new_tree; in mlxsw_sp_vr_lpm_tree_replace()
973 mlxsw_sp_lpm_tree_hold(new_tree); in mlxsw_sp_vr_lpm_tree_replace()
974 err = mlxsw_sp_vr_lpm_tree_bind(mlxsw_sp, fib, new_tree->id); in mlxsw_sp_vr_lpm_tree_replace()
981 mlxsw_sp_lpm_tree_put(mlxsw_sp, new_tree); in mlxsw_sp_vr_lpm_tree_replace()
988 struct mlxsw_sp_lpm_tree *new_tree) in mlxsw_sp_vrs_lpm_tree_replace() argument
993 u8 old_id, new_id = new_tree->id; in mlxsw_sp_vrs_lpm_tree_replace()
1006 new_tree); in mlxsw_sp_vrs_lpm_tree_replace()
1011 memcpy(new_tree->prefix_ref_count, old_tree->prefix_ref_count, in mlxsw_sp_vrs_lpm_tree_replace()
1012 sizeof(new_tree->prefix_ref_count)); in mlxsw_sp_vrs_lpm_tree_replace()
1013 mlxsw_sp->router->lpm.proto_trees[proto] = new_tree; in mlxsw_sp_vrs_lpm_tree_replace()