From: Ben Pfaff Date: Thu, 5 Mar 2009 21:07:31 +0000 (-0800) Subject: vswitchd: Start adding ports at index 1, since index 0 is reserved. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0c08454d44e02baf2e973d0575485c99a1d2e76;p=openvswitch vswitchd: Start adding ports at index 1, since index 0 is reserved. 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). --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index aa70ad21..69cd7b4f 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -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);