lkml.org 
[lkml]   [2005]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [linux-usb-devel] usbnet ethernet duplex issue?
From
Date
On Fri, 2005-06-17 at 12:27 -0700, Matt Mackall wrote: 
> I'm experimenting with a Netgear FA-120 USB 2.0 to Ethernet device and
> seeing some strange behavior.
>
> If I run a 100MB transfer (TCP, via nc and dd) over out LAN, with the
> Netgear on the sending end, I get about 10MB/s, as expected.
> Receiving, I get ~5MB/s. If I do simultaneous send and receive, the
> throughput is a few K per second at best.
>
> If I do the same transfers between a pair of isolated laptops, with
> the Netgear on one end and Intel e100 or e1000 on the other, I see about
> 500-900K per second in either direction.
>
> There are no errors detected by the usbnet driver and ethtool reports
> that the device is autonegotiating, full duplex. Setting autoneg off
> and duplex to half lets the isolated transfers go at wirespeed.
>
> So the question is, what's up with duplex? Everything I can find about
> the hardware (including the ASIX datasheet) claims it's full-duplex
> capable but aside from the error counters, it's really behaving like a
> half-duplex device.
>

First off, I hope you are testing with 2.6.12 or so. There are some
patches to handle the auto-negotiation that went in 2.6.11 or 2.6.12 and
they SHOULD be handling those cases better though it is certainly
possible that they don't work as well as they should. In some of my
testing, I was finding that I only really got the LPA from
autonegotiation on the first connect. Subsequent ones always returned
the same values, even if I connected into a 10mb hub or the like. I
haven't been able to determine if that is a shortcoming in the device or
not.

--
David Hollis <dhollis@davehollis.com>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-06-20 13:53    [from the cache]
©2003-2011 Jasper Spaans