WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] 3.0.4 (and earlier): skbuff_ctor() use of xen_create_con

To: "David Edmondson" <dme@xxxxxxx>
Subject: Re: [Xen-devel] 3.0.4 (and earlier): skbuff_ctor() use of xen_create_contiguous_region()
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 09 Mar 2007 12:45:27 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 09 Mar 2007 04:44:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070309123724.GQ25301@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <45F15E73.76E4.0078.0@xxxxxxxxxx> <20070309123724.GQ25301@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> David Edmondson <dme@xxxxxxx> 09.03.07 13:37 >>>
>On Fri, Mar 09, 2007 at 12:17:39PM +0000, Jan Beulich wrote:
>> While I realize that this is gone from -unstable, I'd still like to
>> understand what the purpose of using xen_create_contiguous_region()
>> in skbuff_ctor() was, and specifically what consequences I am to
>> expect when this call fails.
>
>So that a multi-page packet is physically contiguous when passed to
>the NIC for transmit?
>
>If it's not physically contiguous and the NIC hardware can't do
>scatter gather then the driver has to re-allocate and copy.

I understand that, but what I wanted clarification on is whether this is
only for performance, not for correctness (and performance would still
suffer if the allocation turns out to be beyond the physical reach of the
particular NIC).

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel