Skip to content

Commit

Permalink
Merge "Do not consider evicted flows as active flow in flow utility"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 24, 2016
2 parents 2cfdf83 + 412a41d commit bc92292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/flow.c
Expand Up @@ -599,6 +599,9 @@ flow_stats(void)
fe = (struct vr_flow_entry *)((char *)ft->ft_entries +
(i * sizeof(*fe)));
if (fe->fe_flags & VR_FLOW_FLAG_ACTIVE) {
if (fe->fe_flags & VR_FLOW_FLAG_EVICTED) {
continue;
}
total_entries++;
if (fe->fe_action != VR_FLOW_ACTION_HOLD) {
active_entries++;
Expand Down Expand Up @@ -706,6 +709,9 @@ flow_rate(void)
for (i = 0; i < ft->ft_num_entries; i++) {
fe = (struct vr_flow_entry *)((char *)ft->ft_entries + (i * sizeof(*fe)));
if (fe->fe_flags & VR_FLOW_FLAG_ACTIVE) {
if (fe->fe_flags & VR_FLOW_FLAG_EVICTED) {
continue;
}
total_entries++;
if (fe->fe_action != VR_FLOW_ACTION_HOLD)
active_entries++;
Expand Down

0 comments on commit bc92292

Please sign in to comment.