From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LB9IJ-0005Dc-GB for qemu-devel@nongnu.org; Fri, 12 Dec 2008 09:47:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LB9IJ-0005Ct-32 for qemu-devel@nongnu.org; Fri, 12 Dec 2008 09:47:07 -0500 Received: from [199.232.76.173] (port=32790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LB9II-0005Cg-Sf for qemu-devel@nongnu.org; Fri, 12 Dec 2008 09:47:06 -0500 Received: from mx2.redhat.com ([66.187.237.31]:34801) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LB9II-0006Yb-CO for qemu-devel@nongnu.org; Fri, 12 Dec 2008 09:47:06 -0500 From: Mark McLoughlin In-Reply-To: <493E8858.2070300@codemonkey.ws> References: <> <1228820143-23580-1-git-send-email-markmc@redhat.com> <1228820143-23580-2-git-send-email-markmc@redhat.com> <493E8858.2070300@codemonkey.ws> Content-Type: text/plain Date: Fri, 12 Dec 2008 14:45:36 +0000 Message-Id: <1229093136.4041.25.camel@blaa> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/4] Add 'set_link' monitor command Reply-To: Mark McLoughlin , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On Tue, 2008-12-09 at 09:01 -0600, Anthony Liguori wrote: > > + for(vc = vlan->first_client; vc != NULL; vc = vc->next) > > + if (i++ == device_idx) > > + break; > > > > I think a better way would be to allow a user to specify an id for the > nic that gets saved early on. info nics should print the id and a > default id should be assigned. I think you could argue either way as to > whether the ids should be vlan local or global. > > I sort of think that making them global has a number of advantages. You > could also use a string to identify the nics globally, it's up to you. Okay, here's a few patches to add a vlan client name. I'll repost the set_link patches once we agree on this part. Cheers, Mark.