From: "=?ISO-8859-2?Q?Grzegorz_Mi=B3o=B6?=" Subject: Re: Re: Re: Re: SetPageForeign in netback Date: Tue, 24 Jun 2008 07:41:49 +0100 Message-ID: <4cac40570806232341sf036d88u94a88ea3c8ba6296@mail.gmail.com> References: <20080624005042.9104C136821@ncic.ac.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080624005042.9104C136821@ncic.ac.cn> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Zang Hongyong Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>The reason why you have to copy is to make sure that you pull the skb >>into a fresh page (which doesn't have any other pieces of data in it). >>It's only then that you can flip it to DomU. >>It used to be the case that the backend was more efficient in the >>rx-flip mode. Some/most skbs copies were avoided by keeping a close >>eye on the skb allocation. Since rx-flip is now only/mostly kept for >>backward compatibility (rx-copy is the default) the code was >>simplified. > > You mean in previous Xen release, rx-flip is more efficient than today's release. And keeping rx-flip in Xen Source Code tree today is only for compatibility. So no need to do more optimizing for it. > Is my understanding right? > I don't know if much performance was lost (the code got simplified, at the expense of potentially more skb copies, but I don't know of any experimental tests to benchmark what the effect was exactly), but aside from that, your understanding is correct. Cheers Gr(z)egor(z)