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

[Xen-devel] RE: Question on sg in netback tx path

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] RE: Question on sg in netback tx path
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Mar 2008 19:21:38 +1100
Delivery-date: Tue, 04 Mar 2008 00:22:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C7B67062D31B9E459128006BAAD0DC3D0753DC2553@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <AEC6C66638C05B468B556EA548C1A77D013DBE5B@trantor> <C7B67062D31B9E459128006BAAD0DC3D0753DC2553@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach9tRDVg/HwdZRuRta9ZMiBnX4U2QACfQAwAARry9A=
Thread-topic: Question on sg in netback tx path
> > If I interpret the implications of that correctly, the 'size'
> > field in the first fragment of a packet should be the size of
> > the entire packet,
> 
>   Correct.
> 
> >but then how do I tell netback how long my
> > first fragment is?
> 
>   Look at the line following the code above:
>                 first->size -= txp->size;
> 
>   This line subtract each fragment size from the "size" field in the
first
> fragment.
>   When the loop ends you will have subtracted the size of all
fragments
> and first->size will now have the actual size of the first fragment.
> 

Thanks for the clarification - all makes sense now!

James

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

<Prev in Thread] Current Thread [Next in Thread>