From: Ian Jackson Subject: Re: [RFC PATCH 6/6] libxl: create path for advertisement of network attributes... Date: Mon, 16 Nov 2015 17:29:53 +0000 Message-ID: <22090.4753.348519.44031@mariner.uk.xensource.com> References: <1447258719-21891-1-git-send-email-paul.durrant@citrix.com> <1447258719-21891-7-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyNbL-0006po-Ew for xen-devel@lists.xenproject.org; Mon, 16 Nov 2015 17:29:59 +0000 In-Reply-To: <1447258719-21891-7-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Paul Durrant writes ("[RFC PATCH 6/6] libxl: create path for advertisement of network attributes..."): > - frontend_perms[0].id = device->domid; > - frontend_perms[0].perms = XS_PERM_NONE; > - frontend_perms[1].id = device->backend_domid; > - frontend_perms[1].perms = XS_PERM_READ; > + attr_perms[0].id = frontend_perms[0].id = device->domid; > + attr_perms[0].perms = frontend_perms[0].perms = XS_PERM_NONE; > + attr_perms[1].id = frontend_perms[1].id = device->backend_domid; > + attr_perms[1].perms = frontend_perms[1].perms = XS_PERM_READ; Why not just use frontend_perms throughout rather than creating a new identical structure ? If you do want another structure, please line up the assignemnts horizontally so that it is easy to read ! Also there is a lot of wrap damage in this patch. Can you please rewrap the lines you touch, at least ? At the moment it is hard for me to read. Thanks, Ian.