Skip to content

Commit

Permalink
Merge pull request #23 from yu-iwata/master
Browse files Browse the repository at this point in the history
Flow entries are deleted although out_port does not match
  • Loading branch information
Eder Leão Fernandes committed Apr 11, 2013
2 parents b0a3915 + 10fe635 commit 31704b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion udatapath/flow_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ flow_table_delete(struct flow_table *table, struct ofl_msg_flow_mod *mod, bool s
struct flow_entry *entry, *next;

LIST_FOR_EACH_SAFE (entry, next, struct flow_entry, match_node, &table->match_entries) {
if (flow_entry_matches(entry, mod, strict, true/*check_cookie*/)) {
if ((mod->out_port == OFPP_ANY || flow_entry_has_out_port(entry, mod->out_port)) &&
(mod->out_group == OFPG_ANY || flow_entry_has_out_group(entry, mod->out_group)) &&
flow_entry_matches(entry, mod, strict, true/*check_cookie*/)) {
flow_entry_remove(entry, OFPRR_DELETE);
}
}
Expand Down

0 comments on commit 31704b1

Please sign in to comment.