Skip to content

Commit

Permalink
Merge "Fix vrouter agent crash at updateksync" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 2, 2016
2 parents 1670281 + b72654f commit d25b171
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/vnsw/agent/pkt/flow_table.cc
Expand Up @@ -416,6 +416,7 @@ void FlowTable::DeleteAll() {
reverse_entry = it->second;
++it;
}
FLOW_LOCK(entry, reverse_entry, FlowEvent::DELETE_FLOW);
DeleteUnLocked(true, entry, reverse_entry);
}
}
Expand Down Expand Up @@ -469,19 +470,6 @@ void FlowTable::UpdateReverseFlow(FlowEntry *flow, FlowEntry *rflow) {
}
}

if (rflow && rflow->is_flags_set(FlowEntry::BgpRouterService)) {
//In BGP router service for some reason if tcp connection does not
//succeed, then client will try again with new source port and this will
//create a new flow. Now there will be two flows - one with old source
//port and other with new source port. However both of them will have
//same reverse flow as its is nat'd with fabric sip/dip.
//To avoid this delete old flow and dont let new flow to be short flow.
if (rflow_rev) {
DeleteUnLocked(rflow_rev->key(), false);
rflow_rev = NULL;
}
}

if (rflow_rev && (rflow_rev->reverse_flow_entry() == NULL)) {
rflow_rev->MakeShortFlow(FlowEntry::SHORT_NO_REVERSE_FLOW);
if (ValidFlowMove(flow, rflow_rev) == false) {
Expand Down

0 comments on commit d25b171

Please sign in to comment.