From: Andrew Lunn <andrew@lunn.ch>
To: Dean Jenkins <Dean_Jenkins@mentor.com>
Cc: Guodong Xu <guodong.xu@linaro.org>,
John Stultz <john.stultz@linaro.org>,
lkml <linux-kernel@vger.kernel.org>,
Mark Craske <Mark_Craske@mentor.com>,
"David S. Miller" <davem@davemloft.net>,
YongQin Liu <yongqin.liu@linaro.org>,
linux-usb@vger.kernel.org, netdev@vger.kernel.org,
Ivan Vecera <ivecera@redhat.com>,
"David B. Robins" <linux@davidrobins.net>
Subject: Re: [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions
Date: Fri, 6 May 2016 17:27:32 +0200 [thread overview]
Message-ID: <20160506152732.GA23647@lunn.ch> (raw)
In-Reply-To: <572CB188.7050203@mentor.com>
> In other words, the full-speed hub is restricting the USB to
> Ethernet Adaptor to a 12Mbps (half-duplex) bandwidth to support
> Ethernet 100Mbps (full-duplex) traffic. That is not going to work
> very well because Ethernet frames (perhaps partial Ethernet frames)
> need to be discarded within the USB link.
If that really is true, the design is broken. I would expect the
adaptor to reliably transfer whole frames over USB, and drop whole
frames from its receive queue when the USB is congested. TCP is also
going to see the USB bottleneck as just like any bottleneck in the
network and back off. So TCP streams should not cause major congestion
on the USB link. Going over a 12Mbps USB link should be no different
to hitting an old Ethernet hub which can only do 10/Half.
> Therefore please retest with a working high-speed USB hub or remove
> the full-speed USB hub from the test environment and directly
> connect the USB to Ethernet Adaptor to the root hub of the USB port.
> Then repeat the tests to see whether anything improved.
>
> In other words, you need to eliminate the dmesg messages saying "not
> running at top speed; connect to a high speed hub".
I would also suggest testing with the Ethernet at 10/half. You should
be able to use Ethtool to set that up. Your USB and Ethernet bandwidth
become more equal. If you still see errors, it suggests a protocol
implementation error somewhere.
Andrew
next prev parent reply other threads:[~2016-05-06 15:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 4:55 [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions John Stultz
[not found] ` <CALAqxLUj+-yUGTNviHu4+KE9=JTxjZyHBv4pdUob=xndAr8ZmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-03 9:23 ` Dean Jenkins
2016-05-03 10:04 ` Guodong Xu
2016-05-03 10:54 ` Dean Jenkins
[not found] ` <5728837D.60702-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-05-04 23:45 ` John Stultz
2016-05-05 8:11 ` Dean Jenkins
2016-05-05 12:19 ` Guodong Xu
2016-05-06 15:00 ` Dean Jenkins
2016-05-06 15:27 ` Andrew Lunn [this message]
2016-05-06 16:54 ` Dean Jenkins
2016-05-06 17:40 ` John Stultz
2016-05-06 17:06 ` John Stultz
2016-05-03 14:42 ` David B. Robins
[not found] ` <87ed4c76328ed9dc5591359ea0e98ab9-xeNgNI7VTeVeoWH0uzbU5w@public.gmane.org>
2016-05-03 15:44 ` John Stultz
2016-05-03 21:16 ` Dean Jenkins
2016-05-04 0:28 ` David B. Robins
2016-05-04 7:58 ` Dean Jenkins
2016-05-06 20:45 ` David B. Robins
[not found] ` <57291539.6080405-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2016-05-06 18:38 ` John Stultz
2016-05-06 20:57 ` John Stultz
[not found] ` <CALAqxLXsna_em_5w8yonXUCcMwbOGknYtL5LhqYCHUK9LKFr0A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-11 22:00 ` Dean Jenkins
2016-05-17 0:10 ` John Stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160506152732.GA23647@lunn.ch \
--to=andrew@lunn.ch \
--cc=Dean_Jenkins@mentor.com \
--cc=Mark_Craske@mentor.com \
--cc=davem@davemloft.net \
--cc=guodong.xu@linaro.org \
--cc=ivecera@redhat.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@davidrobins.net \
--cc=netdev@vger.kernel.org \
--cc=yongqin.liu@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).