This suppresses a long-standing warning from ovs-vswitchd about
non-normalized flows.

Signed-off-by: Ben Pfaff <b...@nicira.com>
---
 lib/learning-switch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/learning-switch.c b/lib/learning-switch.c
index e4287c4..c1cd909 100644
--- 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;
-- 
1.7.2.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to