ovs-testcontroller: Fix priority of non table-miss flow entries.
authorJean Tourrilhes <jean.tourrilhes@hp.com>
Fri, 31 Oct 2014 20:46:43 +0000 (13:46 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Nov 2014 00:33:40 +0000 (16:33 -0800)
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
lib/learning-switch.c

index e3b48d5..2b7495c 100644 (file)
@@ -660,7 +660,7 @@ process_packet_in(struct lswitch *sw, const struct ofp_header *oh)
         memset(&fm, 0, sizeof fm);
         match_init(&fm.match, &flow, &sw->wc);
         ofputil_normalize_match_quiet(&fm.match);
-        fm.priority = 0;
+        fm.priority = 1; /* Must be > 0 because of table-miss flow entry. */
         fm.table_id = 0xff;
         fm.command = OFPFC_ADD;
         fm.idle_timeout = sw->max_idle;