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] Support for mii_xxx functions?

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] Support for mii_xxx functions?
From: "Paul K. Fisher" <pfisher@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Oct 2003 08:28:37 -0500
Cc: "Xen-Devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 23 Oct 2003 05:47:17 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
Importance: Normal
In-reply-to: <E1ACIYY-0003j0-00@xxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxx]
> Sent: Wednesday, October 22, 2003 7:58 AM
>
> Yes patchsets to xen-devel is the best way to send updates. Do you
> have a driver which uses mii yet?

Not quite yet.  I'm still digging throught the skbuff handling for both
transmit and receive following the porting outline that you sent.  It is a
little more complicated of course...

On the transmit side I have removed NETIF_F_SG from the supported features
as suggested but the driver also does not have real hardware checksumming.
As a result it calls skb_copy_and_csum_dev() to handle the actual movement
into the transmit buffer.  This interface is not (yet) supported in Xen, and
I am still digging through to see if linux version is safe just as in the
case of the mii_functions.  If not I'll create a modified version that works
for the Xen environment, since at least one other driver uses it
(via-rhine).

One the receive side the code compiles as is, but I have not yet verified if
the interface it calls -- eth_copy_and_sum() -- will work, or if I need to
changed it to somehting like this:

>  vdata = map_domain_mem(skb->data);
>  copy 'len' bytes to 'vdata' from NIC buffer
>  unmap_domain_mem(vdata);
>  skb_put(len);

as you suggested.  If you (or anyone else) has any thoughts on why this (and
other) skbuff interfaces where not supported in Xen, that would help with my
digging.  Remember, I'm not at all familiar with the linux kernel source so
I have to read it all to know what anything is doing... on the other hand it
is just time and code...

thanks,
paul



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel