[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RE: 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.