ses_paths_find_flow()
authoryu.dongliang <18588496441@163.com>
Thu, 14 Sep 2023 17:20:54 +0000 (01:20 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 14 Sep 2023 17:20:54 +0000 (01:20 +0800)
ses_step_va_balance.c
ses_steps.c

index 9e99bd2aa0afcc8d53e82f5a43827aeaf696ba78..208ecd1cef590a1a8e3f5cb53a1e44a967376380 100644 (file)
@@ -29,7 +29,7 @@ int ses_paths_find_flow(ses_flow_t* flow, scf_vector_t* paths, ScfEpin* vip, ses
                if (!path->childs)
                        continue;
 
-               int ret = ses_paths_find_flow(flow, path->childs, p, bridge);
+               int ret = ses_paths_find_flow(flow, path->childs, vip, bridge);
                if (ret < 0)
                        return ret;
 
@@ -169,6 +169,8 @@ static int _va_balance_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_c
                ses_flow_print(flow0);
                printf("\n");
 
+               printf("-------------\n");
+
                ses_flow_print(flow1);
                printf("\n");
 
index 04c434808b87b2e2105f7847dd514655189b3d77..9867497643b14a4682c936a52e48f4e0c101e1aa 100644 (file)
@@ -130,8 +130,9 @@ void ses_flow_print(ses_flow_t* flow)
                for (j = 0; j < path->pins->size; j++) {
                        p  =        path->pins->data[j];
 
-                       if (!flag && p->lid == vip->lid) {
-                               flag = 1;
+                       if (!flag) {
+                               if (p->lid == vip->lid)
+                                       flag = 1;
                                continue;
                        }