From: Ian Jackson Subject: Re: [PATCH] libxl: use preferred syntax for network device creation with upstream qemu [and 1 more messages] Date: Thu, 26 May 2011 15:38:34 +0100 Message-ID: <19934.26090.743074.960987@mariner.uk.xensource.com> References: <6b1fe0cba8a2f0bcc127.1306311646@cosworth.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6b1fe0cba8a2f0bcc127.1306311646@cosworth.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: Markus Armbruster , Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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: > - 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.