From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMZVr-0004vo-RY for qemu-devel@nongnu.org; Fri, 12 Oct 2012 03:18:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMZVq-0007fg-Ka for qemu-devel@nongnu.org; Fri, 12 Oct 2012 03:18:27 -0400 Received: from 69.169.164.127.provo.static.broadweavenetworks.net ([69.169.164.127]:37707 helo=baldr.dev-zero.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMZVq-0007fO-FM for qemu-devel@nongnu.org; Fri, 12 Oct 2012 03:18:26 -0400 Message-ID: <5077C0A7.4090500@dev-zero.net> Date: Fri, 12 Oct 2012 01:03:03 -0600 From: Mike Lovell MIME-Version: 1.0 References: <5076E640.4090003@linux.vnet.ibm.com> <1350024543-26211-1-git-send-email-mike@dev-zero.net> In-Reply-To: <1350024543-26211-1-git-send-email-mike@dev-zero.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] net: Allow specifying ifname for qemu-bridge-helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com On 10/12/2012 12:49 AM, Mike Lovell wrote: > This makes a few changes to allow ifname to be specified when using > qemu-bridge-helper with both the bridge and tap network interfaces. It adds > the --ifname option to qemu-bridge-helper, removes the restriction that ifname > cannot be specified with helper for the tap interface, and adds logic to > specify the --ifname option when exec'ing the helper. > > Signed-off-by: Mike Lovell > --- > > This feature was originally requested by Mario De Chenno on the qemu-devel > mailing list. Seems pretty simple and figured it was something I could throw > together pretty quickly. I have tested the following combinations of invoking > qemu (where qbr is qemu-bridge-helper) > > qemu-system-x86_64 -net nic -net tap,helper="qbr --br=test1" > qemu-system-x86_64 -net nic -net tap,helper="qbr --br=test1",ifname=vm1 > qemu-system-x86_64 -net nic -net tap,helper=qbr > qemu-system-x86_64 -net nic -net tap,helper=qbr,ifname=vm1 > qemu-system-x86_64 -net nic -net bridge,helper=qbr > qemu-system-x86_64 -net nic -net bridge,helper=qbr,ifname=vm1 > qemu-system-x86_64 -net nic -net bridge,helper=qbr,ifname=vm1,br=test1 > qemu-system-x86_64 -net nic -net bridge,helper=qbr,br=test1 I realized there were a couple more cases to check. I also tested the following. qemu-system-x86_64 -net nic -net tap,helper="qbr --ifname=vm1" qemu-system-x86_64 -net nic -net tap,helper="qbr --br=test1 --ifname=vm1" qemu-system-x86_64 -net nic -net tap,helper="qbr --ifname=vm1",ifname=foo qemu-system-x86_64 -net nic -net tap,helper="qbr --br=test1 --ifname=vm1",ifname=foo In the last two cases, the --ifname specified in the helper option (in this case, vm1) is used over the tap ifname option (in this case, foo). mike