Skip to content

Commit

Permalink
* Enqueue request to delete short flow from flow stats collector
Browse files Browse the repository at this point in the history
All flow table delete and add operation happens in FlowTable context
in case of short flow were getting deleted directly resulting in
flow table getting modified in multiple context. Correcting the same.
Closes-bug:#1515260

Change-Id: I8a69266d8f2f44c1036c809dd2284be0343c8f7c
  • Loading branch information
naveen-n committed Nov 17, 2015
1 parent a478f83 commit 6f1e6ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vnsw/agent/vrouter/flow_stats/flow_stats_collector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,7 @@ bool FlowStatsCollector::Run() {
it++;
}
}
Agent::GetInstance()->pkt()->flow_table()->Delete
(entry->key(), true);
Agent::GetInstance()->pkt()->flow_table()->DeleteEnqueue(entry);
entry = NULL;
if (reverse_flow) {
count++;
Expand Down

0 comments on commit 6f1e6ac

Please sign in to comment.