From owner-freebsd-net@freebsd.org Mon Jul 27 10:29:28 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2DB1D37D88E; Mon, 27 Jul 2020 10:29:28 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BFbdg1FrNz4mXH; Mon, 27 Jul 2020 10:29:26 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-ot1-x32d.google.com with SMTP id h13so11966500otr.0; Mon, 27 Jul 2020 03:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TSJio+ULyQ3F9u1i4MOJOdr5sYZcO3OP0VTb2CFzf1s=; b=bJhtWxQiEgVcM55gLWISRKi4wygmQK+8+hWRmsSPKSXYuUtPDUkqlVkQIjpbIW9qvO dXAZtF24BsXMCqWy4AbI1W0LYIAUMZYSGYXOv6xXhY6kWzQC/SVM9+5hYi9CYu7rlSXA a4cBmoyAuRF8D3JKvII8yG0zlc+WJeMiT7YC2SDoWEsAC91vmMig4mQpgrdIo0B3gU6S q+J0cWnoP+TlAz+bcCoT1C1JXeWF6/0HXgSSf4HSEvDnaLotbpJYpO86l4fnPtuBlLO0 0DReOmaWiTPE6A1iay5TYJnWWdUyihRvPwDODq38UgTbKpJp6pSu67uyXwRkKdi+bXLe 6xsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TSJio+ULyQ3F9u1i4MOJOdr5sYZcO3OP0VTb2CFzf1s=; b=QdU/fdN934DkOKbwGFPSfTfoRVYMdSnooHdcMU89IDwhV/tWuB6StZjxXLFiBte1rx +KC4exDnMBT7geUOJbRsQVffP87I2ArCIftO0Z6n5oHZ+OnBVH81DhTkvTHvEFYx2bHu EfwojTDktGYAiRukC+kIT7/R0ewmYsUcSK+LHR12hmKowMDCJbW1RdZKh6CAsk9r1xhc D2w1tuwKyEnGHV1mF4mhrveiuWO96b2891vKvvN2OhDBGOl699fUv5nCn1mOZN9NKA76 2WHwLkBNUoMVzM+x1RNA6QT3qz/011c9rIWCz0qrtvUtKDBSCW83KhWvCPNyXyZPPdV5 l2HQ== X-Gm-Message-State: AOAM530h9gQKEQXCN5pmDKXO3wvzPA7dljdmopJhw56+XX/CYgGp7pl4 ec428WwSry8m/KbTZ5rNxVc7oZZlKnNr+5y1Uxc= X-Google-Smtp-Source: ABdhPJxGBdgQgaQQl52c42eQcKUHH+ZFW0R7zdo6vyCu0/Y1F4Z26RpCo15VbWj7l9BjcLYeankW1WcWNKzS2SziETs= X-Received: by 2002:a9d:6b88:: with SMTP id b8mr11846497otq.258.1595845765780; Mon, 27 Jul 2020 03:29:25 -0700 (PDT) MIME-Version: 1.0 References: <20200725231318.GO4213@funkthat.com> <20200726211447.GQ4213@funkthat.com> In-Reply-To: <20200726211447.GQ4213@funkthat.com> From: Ganbold Tsagaankhuu Date: Mon, 27 Jul 2020 18:29:14 +0800 Message-ID: Subject: Re: CFT: major update to if_ure To: Ganbold Tsagaankhuu , freebsd-net@freebsd.org, freebsd-current@freebsd.org X-Rspamd-Queue-Id: 4BFbdg1FrNz4mXH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bJhtWxQi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ganbold@gmail.com designates 2607:f8b0:4864:20::32d as permitted sender) smtp.mailfrom=ganbold@gmail.com X-Spamd-Result: default: False [-3.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.025]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.01)[-1.006]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32d:from]; NEURAL_HAM_SHORT(-0.79)[-0.788]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2020 10:29:28 -0000 On Mon, Jul 27, 2020 at 5:14 AM John-Mark Gurney wrote: > Ganbold Tsagaankhuu wrote this message on Sun, Jul 26, 2020 at 11:05 +0800: > > On Sun, Jul 26, 2020 at 7:13 AM John-Mark Gurney > wrote: > > > > > Hello, > > > > > > I'd like people who have ure (RealTek) based USB devices to test > > > review D25809[0]. > > > > > > This update adds support for: > > > - HW VLAN tagging > > > - HW checksum offload for IPv4 and IPv6 > > > - tx and rx aggreegation (for full gige speeds) > > > - multiple transactions > > > > > > In my testing, I am able to get 900-950Mbps depending upon > > > TCP or UDP, which is a significant improvement over the previous > > > 91Mbps (~8kint/sec*1500bytes/packet*1packet/int). > > > > Does performance improve for if_ure device on USB2? > > I will try to test it in a couple of days on NanoPI R1 and R1S boards. > > Yes, it should. > > I never tested the before driver on USB2, but I'm now able to get > 211Mbps TX and 190Mbps RX TCP, and 227Mbps TX and 225Mbps RX UDP. > > I believe it is likely that the same 91Mbps speed limit applied to > USB2 as well. > Couldn't find your iperf test scripts and I tested only tcp: root@nanopi-r1s-h5:~ # iperf3 -c 192.168.111.1 Connecting to host 192.168.111.1, port 5201 [ 5] local 192.168.111.10 port 28569 connected to 192.168.111.1 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 27.4 MBytes 230 Mbits/sec 0 95.4 KBytes [ 5] 1.00-2.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 2.00-3.00 sec 27.7 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 3.00-4.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 4.00-5.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 5.00-6.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 6.00-7.00 sec 27.7 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 7.00-8.00 sec 27.7 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 8.00-9.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes [ 5] 9.00-10.00 sec 27.6 MBytes 232 Mbits/sec 0 95.4 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 276 MBytes 232 Mbits/sec 0 sender [ 5] 0.00-10.79 sec 276 MBytes 215 Mbits/sec receiver iperf Done. root@nanopi-r1s-h5:~ # iperf3 -c 192.168.111.1 -R Connecting to host 192.168.111.1, port 5201 Reverse mode, remote host 192.168.111.1 is sending [ 5] local 192.168.111.10 port 29384 connected to 192.168.111.1 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 1.00-2.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 2.00-3.00 sec 12.1 MBytes 101 Mbits/sec [ 5] 3.00-4.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 4.00-5.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 5.00-6.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 6.00-7.00 sec 12.1 MBytes 101 Mbits/sec [ 5] 7.00-8.00 sec 12.1 MBytes 102 Mbits/sec [ 5] 8.00-9.00 sec 12.1 MBytes 101 Mbits/sec [ 5] 9.00-10.00 sec 12.1 MBytes 102 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-11.25 sec 121 MBytes 90.3 Mbits/sec 2539 sender [ 5] 0.00-10.00 sec 121 MBytes 101 Mbits/sec receiver iperf Done. root@nanopi-r1s-h5:~ # sysctl -a | grep cpu.0.freq dev.cpu.0.freq_levels: 1248/-1 1008/-1 816/-1 624/-1 480/-1 dev.cpu.0.freq: 1248 Ganbold > > > [0] https://reviews.freebsd.org/D25809 > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >