From: Ian Campbell Subject: Re: [PATCH] libxl: use preferred syntax for network device creation with upstream qemu [and 1 more messages] Date: Thu, 26 May 2011 15:40:54 +0100 Message-ID: <1306420854.775.40.camel@zakaz.uk.xensource.com> References: <6b1fe0cba8a2f0bcc127.1306311646@cosworth.uk.xensource.com> <19934.26090.743074.960987@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19934.26090.743074.960987@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" , Markus Armbruster List-Id: xen-devel@lists.xenproject.org On Thu, 2011-05-26 at 15:38 +0100, Ian Jackson wrote: > Markus Armbruster writes ("Re: [Xen-devel] [PATCH] libxl: use preferred syntax for network device creation with upstream qemu"): > > I figure this is a good idea. > > Thanks, I'll take that as an ack. > > However, sorry to nitpic, but: > > Ian Campbell writes ("[Xen-devel] [PATCH] libxl: use preferred syntax for network device creation with upstream qemu"): > > - flexarray_append(dm_args, libxl__sprintf(gc, "nic,vlan=%d,macaddr=%s,model=%s", > > - flexarray_append(dm_args, libxl__sprintf(gc, "tap,vlan=%d,ifname=%s,script=%s", > > + flexarray_append(dm_args, libxl__sprintf(gc, "%s,netdev=net%d,mac=%s", > > + vifs[i].model, vifs[i].devid, smac)); > > + flexarray_append(dm_args, libxl__sprintf(gc, "type=tap,id=net%d,ifname=%s,script=%s", > > This increases the number of overly-long lines. It's very hard to > read on my screen: I noticed that and fixed it in the replacement patch, see <1306399985.775.22.camel@zakaz.uk.xensource.com> > > > - flexarray_append(dm_args, libxl__sprintf(gc, "nic,vlan=%d,ma > caddr=%s,model=%s", > > - flexarray_append(dm_args, libxl__sprintf(gc, "tap,vlan=%d,if > name=%s,script=%s", > > + flexarray_append(dm_args, libxl__sprintf(gc, "%s,netdev=net% > d,mac=%s", > > + vifs[i].model, vifs > [i].devid, smac)); > > + flexarray_append(dm_args, libxl__sprintf(gc, "type=tap,id=ne > t%d,ifname=%s,script=%s", > > Ian. >