Skip to content

Commit

Permalink
Merge "Set action to drop if its a short flow." into R3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 24, 2017
2 parents bedf67b + 517775d commit e331c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/vnsw/agent/pkt/flow_entry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2078,11 +2078,6 @@ bool FlowEntry::ActionRecompute() {
}
}

// Force short flows to DROP
if (is_flags_set(FlowEntry::ShortFlow)) {
action |= (1 << TrafficAction::DENY);
}

if (SetQosConfigIndex()) {
ret = true;
}
Expand Down
4 changes: 4 additions & 0 deletions src/vnsw/agent/vrouter/ksync/flowtable_ksync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ int FlowTableKSyncEntry::Encode(sandesh_op::type op, char *buf, int buf_len) {
}
}

if (flow_entry_->IsShortFlow()) {
action = VR_FLOW_ACTION_DROP;
}

req.set_fr_flags(flags);
req.set_fr_action(action);
req.set_fr_drop_reason(drop_reason);
Expand Down

0 comments on commit e331c56

Please sign in to comment.