Skip to content

Commit

Permalink
Remove duplicate code in VmInterface::UpdateFatFlow
Browse files Browse the repository at this point in the history
Remove duplicate code in VmInterface::UpdateFatFlow and invoke
VmInterface::DeleteFatFlow instead

Change-Id: I18e4fb282c6f58a2b0c33179018aa65126d808a6
Fixes-Bug: #1522285
  • Loading branch information
praveenkv committed Dec 4, 2015
1 parent 9ae6883 commit f3816a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vnsw/agent/oper/vm_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2951,13 +2951,7 @@ void VmInterface::DeleteSecurityGroup() {
}

void VmInterface::UpdateFatFlow() {
FatFlowEntrySet::iterator it = fat_flow_list_.list_.begin();
while (it != fat_flow_list_.list_.end()) {
FatFlowEntrySet::iterator prev = it++;
if (prev->del_pending_) {
fat_flow_list_.list_.erase(prev);
}
}
DeleteFatFlow();
}

void VmInterface::DeleteFatFlow() {
Expand Down

0 comments on commit f3816a1

Please sign in to comment.