projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cbd993
)
learning-switch: Normalize the flows that are sent to the switch.
author
Ben Pfaff
<blp@nicira.com>
Tue, 7 Aug 2012 18:32:32 +0000
(11:32 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 7 Aug 2012 19:41:59 +0000
(12:41 -0700)
This suppresses a long-standing warning from ovs-vswitchd about
non-normalized flows.
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/learning-switch.c
patch
|
blob
|
history
diff --git
a/lib/learning-switch.c
b/lib/learning-switch.c
index e4287c4e31f605a690bf3ff0cc4865d2ba5433af..c1cd909f5ed47586b1c14c2c779e082f32c6d30a 100644
(file)
--- a/
lib/learning-switch.c
+++ b/
lib/learning-switch.c
@@
-576,6
+576,7
@@
process_packet_in(struct lswitch *sw, const struct ofp_header *oh)
* new flow. */
memset(&fm, 0, sizeof fm);
cls_rule_init(&flow, &sw->wc, 0, &fm.cr);
+ ofputil_normalize_rule_quiet(&fm.cr);
fm.table_id = 0xff;
fm.command = OFPFC_ADD;
fm.idle_timeout = sw->max_idle;