Skip to content

Commit

Permalink
Merge "Before initiating eviction, wait for the reverse flow to move …
Browse files Browse the repository at this point in the history
…from HOLD" into R2.22.x
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 11, 2016
2 parents b62fa8d + 3c987e2 commit df5eb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dp-core/vr_flow.c
Expand Up @@ -679,7 +679,9 @@ vr_flow_mark_evict(struct vrouter *router, struct vr_flow_entry *fe)
/* no modification. hence...*/
rfe = NULL;
} else {
if ((rfe->fe_rflow == index) || (rfe->fe_rflow < 0)) {
/* we do not want hold flows to be evicted, just yet */
if (((rfe->fe_rflow == index) || (rfe->fe_rflow < 0)) &&
(rfe->fe_action != VR_FLOW_ACTION_HOLD)) {
evict_forward_flow = __vr_flow_mark_evict(router, rfe);
}
}
Expand Down
2 changes: 1 addition & 1 deletion dp-core/vrouter.c
Expand Up @@ -256,7 +256,7 @@ vrouter_ops_destroy(vrouter_ops *req)
req->vo_build_info = NULL;
}

vr_free(req->vo_build_info);
vr_free(req);

return;
}
Expand Down

0 comments on commit df5eb9a

Please sign in to comment.