From owner-freebsd-net@freebsd.org Wed Jul 5 14:22:31 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8CCC5DAC35D for ; Wed, 5 Jul 2017 14:22:31 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46CDF8251F for ; Wed, 5 Jul 2017 14:22:31 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: by mail-qk0-x22e.google.com with SMTP id v143so106661157qkb.0 for ; Wed, 05 Jul 2017 07:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+b6LsU0taaVSFFYF3tcNyGREo9qGvQuC+e7pFCLfhzo=; b=QxCOlXMc69yTUyp9yQWiZ9OtwwbbPalk1xoP9cGZQ8BrGH+GcOTq3Zd5jaZAkN8ikC WKUKFxm8azg0bqNsQGria8JmIFp8VHH7HsQ+xmlH8ecp5p2rSOTsIPRZz0LWenpu7kPk lEe5XguhAMgbbnpcg4PcAKZ5p6Iyt3BP6pDSD9eMFOcuuhceOqx9QEqwfEgzaAd7Wmc5 mEr2eF3vhucRmdKE9X68+2WnanU+nR6yKjtA/HOmlPPmiwRotem9Q0lY5HcJMTYAyFDf FTGnvKux6jCycmbjZs7AWvwo+lUYesAIvzlYtnQbq8uDGgRdIKhMISWpCnPJcIPYUgX5 DshA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+b6LsU0taaVSFFYF3tcNyGREo9qGvQuC+e7pFCLfhzo=; b=tOYZuUTC71/3WGw9uX3iaMz4hEMKFb6CJvjjAgZv2eHwFoAQERG83Rt9bgPQvLAhVh vvj4uEi0FkKWQsfjyo58ABG//oZlTSQAFJInUvGifOKLZytvq7SSeyJn48d1qvLXCL/I JvPxuXYXsscFSDzIBstb4LTH/yADlAxktfekAFy0nKTzzd0vUeIZbjI0NqmmQuIXkG9Y f4gLpASVT9tDf4r0Dtwdk2QRsANhsT3xoK+rsS0zs+kwy9sHaeyZM5bR6XRbHPr9O+ZG mGPgJPRldn1hQZNA0dYDBJ7fqcxXT6EJ3rXKaIE2Np6qN5Ruh4fkXbW7Mrlyd4nvlSX1 0h8w== X-Gm-Message-State: AKS2vOwbEn/aBNVQMibyd5wxwudUy1Lp1NIwVSyalSFoe5IdVQ24yyfU Eo4zpoQ6pv5cZv4VNV4Mzj5fjKiZwwA3 X-Received: by 10.55.159.8 with SMTP id i8mr53826927qke.27.1499264550295; Wed, 05 Jul 2017 07:22:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.135.211 with HTTP; Wed, 5 Jul 2017 07:22:29 -0700 (PDT) In-Reply-To: References: From: Oleg Lelchuk Date: Wed, 5 Jul 2017 10:22:29 -0400 Message-ID: Subject: Fwd: AW: axge0 and AX88179 To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jul 2017 14:22:31 -0000 ---------- Forwarded message ---------- From: Oleg Lelchuk Date: Wed, Jul 5, 2017 at 10:17 AM Subject: Re: AW: axge0 and AX88179 To: Hans Petter Selasky You are addressing it to Shteryana, right? On Wed, Jul 5, 2017 at 7:21 AM, Hans Petter Selasky wrote: > On 07/05/17 07:28, Oleg Lelchuk wrote: > >> Yes, I am having exactly the same problem that Shteryana described. I also >> got messages about wrong ip length when I started dhclient for ue0. If I >> plug my device into a usb 2.0 port and enable flow control, I get >> networking speeds that are around 250 Mbit/sec. If flow control is >> disabled >> and the device is still connected to the usb 2.0 port, then I get speeds >> around 200 Mbit/sec. When the device is attached to a usb 3.0 port and the >> flow control is enabled, I get speeds that are around 128 Mbit/sec. The >> speeds drop to something like 40 Mbit/sec when the flow control is >> disabled >> and the device is still attached to the usb 3.0 port. But I enabled flow >> control only on one machine. It was the machine to which the device was >> attached to. I didn't enable flow control on the other machine on the >> network, but I am sure my speeds won't get much improvement even if it's >> enabled on both machines. >> Since I just joined the list, let me copy and paste Shteryana's email >> message that she wrote a while back: >> >> Hi all, >> >> I've experienced a similar problem but didn't get to analyzing it >> deeper (or reporting) unfortunately ; the device is >> >> ugen0.8: at usbus0, cfg=0 md=HOST spd=SUPER >> (5.0Gbps) pwr=ON (124mA) >> >> bLength = 0x0012 >> bDescriptorType = 0x0001 >> bcdUSB = 0x0300 >> bDeviceClass = 0x00ff >> bDeviceSubClass = 0x00ff >> bDeviceProtocol = 0x0000 >> bMaxPacketSize0 = 0x0009 >> idVendor = 0x0b95 >> idProduct = 0x1790 >> bcdDevice = 0x0100 >> iManufacturer = 0x0001 >> iProduct = 0x0002 >> iSerialNumber = 0x0003 <000000000000C> >> bNumConfigurations = 0x0001 >> >> what I've noticed so far - >> >> dhclient complains about wrong ip length - >> >> % sudo dhclient ue1 >> DHCPDISCOVER on ue1 to 255.255.255.255 port 67 interval 7 >> ifconDHCPDISCOVER on ue1 to 255.255.255.255 port 67 interval 15 >> ip length 328 disagrees with bytes received 332. >> accepting packet with data after udp payload. >> DHCPOFFER from 192.168.10.1 >> DHCPREQUEST on ue1 to 255.255.255.255 port 67 >> ip length 328 disagrees with bytes received 332. >> accepting packet with data after udp payload. >> DHCPACK from 192.168.10.1 >> bound to 192.168.10.7 -- renewal in 3600 seconds. >> >> Running iperf3 & watching netstat -i at the same time on the interface >> in question shows increasing InErrors on the interface - >> Name Mtu Network Address Ipkts Ierrs Idrop >> Opkts Oerrs Coll >> ... >> ue1 1500 00:0e:c6:c6:db:ea 66333 354 0 >> 35939 0 0 >> ue1 - 192.168.10.0/24 192.168.10.7 66323 - - >> 35927 - - >> >> Iperf reports ~37.1 Mbits/sec on the interface. >> >> If I attach the device on a USB2 port (or force USB2 speed on the >> port) I was able to get ~ 150-200Mbits on the same system with the >> same device. >> >> This particular system has an Intel Lynx Point USB 3.0 controller >> >> pciconf -lv | grep -A 4 xhcixhci0 at pci0 >> :0:20:0: >> class=0x0c0330 card=0x8179103c chip=0x8c318086 >> rev=0x05 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '8 Series/C220 Series Chipset Family USB xHCI' >> class = serial bus >> subclass = USB >> >> ,is running FreeBSD 12.0-CURRENT #19 r315483M (M stands for a patch >> similar to https://people.freebsd.org/~syrinx/freebsd_xhci-20170318-01. >> diff >> needed to trick the controller on that particular system to actually >> use USB3.0 speeds). >> >> The same ASIX AX88179 device worked just fine reaching over 500 >> Mbits/sec on another system running 11.0-RELEASE-p7 with a different >> USB 3 controller (will double check and report back at first >> opportunity). >> >> Hope this helps. >> > > Hi, > > Maybe you can try to use "usbdump -i usbusX -f Y -s 65536" to compare the > USB traffic on both of these controllers in USB 3.0 mode. Make some stats > on the transfer lengths and look for USB errors. > > --HPS > >