vswitchd: Start adding ports at index 1, since index 0 is reserved.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 21:07:31 +0000 (13:07 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 21:09:49 +0000 (13:09 -0800)
Otherwise we get a spurious error message (although we do go on to try the
next port, so the message isn't a big deal).

vswitchd/bridge.c

index aa70ad21013ec99d368ed6813f7521e7ca3b2ca4..69cd7b4f4eefd5b454627504280962203fb6d6e0 100644 (file)
@@ -388,7 +388,7 @@ bridge_reconfigure(void)
         bridge_get_all_ifaces(br, &want_ifaces);
         svec_diff(&want_ifaces, &cur_ifaces, &add_ifaces, NULL, NULL);
 
-        next_port_no = 0;
+        next_port_no = 1;
         for (i = 0; i < add_ifaces.n; i++) {
             const char *if_name = add_ifaces.names[i];
             if_up(if_name);