From owner-freebsd-net@freebsd.org Wed Jul 5 05:28:25 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 1210EDA23D5 for ; Wed, 5 Jul 2017 05:28:25 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (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 C387372B6E for ; Wed, 5 Jul 2017 05:28:24 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: by mail-qk0-x22c.google.com with SMTP id 16so181496878qkg.2 for ; Tue, 04 Jul 2017 22:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oOLMth8o3KSPXqX6KYZAl1PfekwY/V09TxYGUnPl6Kw=; b=fQELa4co6oXubgyeeIeu0P9PEkScpBa8JJcowDNRBCOmQTypJVEKLdUWExyFNGMyip nfsHguvpVoc6yboDLPYwy1Vi2WrwVCQzMx/pA8vgEyIVlnMURN/iLnmDTmK0aYjlS3Dz FmvIZ/db5z1AQZKXJ7A2nXmiTM93kmOi30zH2c9ydLRJwjT6lEFL9yRz3s6DkL57UNEV OMaCX2gAo5hCMcZA70535Bk8rpgYKSHai2PPzutCdV7Z4YMRff14uExZXhWka76U7wmg GAu7v2rLh267CeyAj0QSEijdWcOZODFt3ZMFR340NGY7fWHjNTGPpZCH2LdV3hfEj9oA q97g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oOLMth8o3KSPXqX6KYZAl1PfekwY/V09TxYGUnPl6Kw=; b=k2pXPPsQZ3qYTxh8/dzUMPYsdNPRAuifQRwo65kKWXP3SbTH6Mv1dp2jnp2ZUplvB6 w8S3jO0k4cwB5+RGgAZUe1CrZDZM653nX5147LlmdfTJ8mw22pB+bAYgUUUyoJok4w6s nRWpsk88Gw82cFoBtmuZVhl7ZMy7Q1F2St70oIQHkvnuwvSnC90o1hncxOneJbAEQDQJ r187JgumvYz4Gecsl6y6UCADjPfsFFKLr7P/7RyEU0pQeTa+1adqd0itZPz9RvWQZvfF K5u7eyOMk3Y46JDy66Rnvu8eW3r2i3FiwdmB7jGMVX5awoXPsdZ1iKuxhulmTbSrixrx /5gQ== X-Gm-Message-State: AIVw112cKJ7DYyat+l0ItLWz7RbRoWSw44Bjwc8EJYc6r9C4Dh9gWxzH OlZS1LW8kvie2gbZj5ZDV1SNWhZm6Th/ X-Received: by 10.55.182.4 with SMTP id g4mr33700689qkf.111.1499232503826; Tue, 04 Jul 2017 22:28:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.135.211 with HTTP; Tue, 4 Jul 2017 22:28:23 -0700 (PDT) From: Oleg Lelchuk Date: Wed, 5 Jul 2017 01:28:23 -0400 Message-ID: Subject: Re: 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 05:28:25 -0000 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. cheers, Shteryana