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] Question on sg in netback tx path

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Question on sg in netback tx path
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Mar 2008 16:03:20 +1100
Delivery-date: Mon, 03 Mar 2008 21:03:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach9tRDVg/HwdZRuRta9ZMiBnX4U2Q==
Thread-topic: Question on sg in netback tx path
I'm trying to improve performance on the gpl pv drivers for windows, and
am running into trouble with the sg stuff on the tx path.

Taking an icmp packet as an example, windows formats the packet like
this:
sg entry 0 - Ethernet header
sg entry 1 - IP header
sg entry 2 - payload

Those pieces could be anywhere inside the page.

In netback.c, it appears that the sg magic happens inside
netbk_count_requests. The following statement confuses me:

"
                if (txp->size > first->size) {
                        DPRINTK("Frags galore\n");
                        return -frags;
                }
"

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,
but then how do I tell netback how long my first fragment is?

Thanks

James


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

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