From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: netback grant copying issues Date: Mon, 7 Sep 2015 16:11:42 +0100 Message-ID: <55EDA92E.2070701@citrix.com> References: <55E9802E020000780009F90B@prv-mh.provo.novell.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 1ZYy5E-0007Dz-1N for xen-devel@lists.xenproject.org; Mon, 07 Sep 2015 15:11:48 +0000 In-Reply-To: <55E9802E020000780009F90B@prv-mh.provo.novell.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: Jan Beulich , Wei Liu , Ian Campbell Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 04/09/15 10:27, Jan Beulich wrote: > Ian, Wei, > > I seem to be seeing two issues in the grant copy handling of netback, > solely from code inspection: > > 1) Shouldn't MAX_GRANT_COPY_OPS, to take care of the copying > the header may require, be > ((MAX_SKB_FRAGS + 1) * XEN_NETIF_RX_RING_SIZE)? We really should have the copy batches be independent of ring size and skb format. e.g., Call xenvif_gnt_copy_add(ref, ptr, len) for each copy op needed. This will issue the hypercall when the batch is full. There would need to be axenvif_gnt_copy_flush() at the end for last hypercall for the remaining ops. David