Re: CFT: major update to if_ure (patch did not apply cleanly for head -r363510)

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 27 Jul 2020 01:31:47 -0700
On 2020-Jul-26, at 18:20, John-Mark Gurney <jmg_at_funkthat.com> wrote:

> Mark Millard wrote this message on Sat, Jul 25, 2020 at 19:13 -0700:
>> For reference for what applying the patch
>> reported (see Hunk #14):
> 
> Ok, updated it to be relative to r363583...
> 
> I had made a white spcae commit to if_ure.c, but hadn't made the
> patch relative to it after that commit.. should work now..

That worked after I upgraded to -r363590 as what to start from
( upgraded from -r363510 ).

Only a quick, basic test on a cortexA72 aarch64 system with a
USB3 EtherNet device so far:

# iperf3 -c 192.168.1.120 --get-server-output
Connecting to host 192.168.1.120, port 5201
[  5] local 192.168.1.148 port 63238 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  91.8 MBytes   770 Mbits/sec  821   91.3 KBytes       
[  5]   1.00-2.00   sec  92.2 MBytes   774 Mbits/sec  865   51.1 KBytes       
[  5]   2.00-3.00   sec  92.2 MBytes   773 Mbits/sec  844   29.9 KBytes       
[  5]   3.00-4.00   sec  91.3 MBytes   766 Mbits/sec  826   65.4 KBytes       
[  5]   4.00-5.00   sec  91.2 MBytes   765 Mbits/sec  828   44.1 KBytes       
[  5]   5.00-6.00   sec  91.6 MBytes   768 Mbits/sec  862   4.28 KBytes       
[  5]   6.00-7.00   sec  91.1 MBytes   765 Mbits/sec  842   5.70 KBytes       
[  5]   7.00-8.00   sec  91.5 MBytes   767 Mbits/sec  844   78.1 KBytes       
[  5]   8.00-9.00   sec  92.1 MBytes   772 Mbits/sec  855   58.3 KBytes       
[  5]   9.00-10.00  sec  91.6 MBytes   769 Mbits/sec  844   17.1 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   917 MBytes   769 Mbits/sec  8431             sender
[  5]   0.00-10.19  sec   916 MBytes   755 Mbits/sec                  receiver

Server output:
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.148, port 32073
[  5] local 192.168.1.120 port 5201 connected to 192.168.1.148 port 63238
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  74.2 MBytes   622 Mbits/sec                  
[  5]   1.00-2.00   sec  92.3 MBytes   774 Mbits/sec                  
[  5]   2.00-3.00   sec  92.3 MBytes   774 Mbits/sec                  
[  5]   3.00-4.00   sec  91.4 MBytes   767 Mbits/sec                  
[  5]   4.00-5.00   sec  91.1 MBytes   764 Mbits/sec                  
[  5]   5.00-6.00   sec  91.7 MBytes   769 Mbits/sec                  
[  5]   6.00-7.00   sec  91.2 MBytes   765 Mbits/sec                  
[  5]   7.00-8.00   sec  91.2 MBytes   765 Mbits/sec                  
[  5]   8.00-9.00   sec  92.1 MBytes   772 Mbits/sec                  
[  5]   9.00-10.00  sec  91.7 MBytes   769 Mbits/sec                  
[  5]  10.00-10.19  sec  17.3 MBytes   772 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.19  sec   916 MBytes   755 Mbits/sec                  receiver

Before the new kernel installation and reboot it showed:

# iperf3 -c 192.168.1.120 --get-server-output
Connecting to host 192.168.1.120, port 5201
[  5] local 192.168.1.148 port 53616 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  13.8 MBytes   116 Mbits/sec  217   35.6 KBytes       
[  5]   1.00-2.00   sec  13.7 MBytes   115 Mbits/sec  221   49.8 KBytes       
[  5]   2.00-3.00   sec  13.7 MBytes   115 Mbits/sec  217   9.98 KBytes       
[  5]   3.00-4.00   sec  13.7 MBytes   115 Mbits/sec  220   41.3 KBytes       
[  5]   4.00-5.00   sec  13.7 MBytes   115 Mbits/sec  221   58.2 KBytes       
[  5]   5.00-6.00   sec  13.7 MBytes   115 Mbits/sec  222   62.7 KBytes       
[  5]   6.00-7.00   sec  13.8 MBytes   116 Mbits/sec  140   44.1 KBytes       
[  5]   7.00-8.00   sec  13.8 MBytes   116 Mbits/sec  114   7.13 KBytes       
[  5]   8.00-9.00   sec  13.7 MBytes   115 Mbits/sec  192   7.13 KBytes       
[  5]   9.00-10.00  sec  13.7 MBytes   115 Mbits/sec  220   15.7 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   137 MBytes   115 Mbits/sec  1984             sender
[  5]   0.00-10.18  sec   137 MBytes   113 Mbits/sec                  receiver

Server output:
Accepted connection from 192.168.1.148, port 52047
[  5] local 192.168.1.120 port 5201 connected to 192.168.1.148 port 53616
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  11.2 MBytes  94.0 Mbits/sec                  
[  5]   1.00-2.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   2.00-3.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   3.00-4.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   4.00-5.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   5.00-6.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   6.00-7.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   7.00-8.00   sec  13.8 MBytes   116 Mbits/sec                  
[  5]   8.00-9.00   sec  13.7 MBytes   115 Mbits/sec                  
[  5]   9.00-10.00  sec  13.7 MBytes   115 Mbits/sec                  
[  5]  10.00-10.18  sec  2.53 MBytes   115 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.18  sec   137 MBytes   113 Mbits/sec                  receiver


iperf Done.



For reference:

Starting devd.
Autoloading module: if_ure.ko
ure0 on uhub0
ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 3.00/30.00, addr 1> on usbus2
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
miibus0: <MII bus>
add net fe80::: gateway ::1
 on ure0
add net ff02::: gateway ::1
rgephy0: <RTL8251/8153 1000BASE-T media interface>
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
 PHY 0 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
ue0: <USB Ethernet> on ure0
ue0: Ethernet address: ###
ue0: link state changed to DOWN
. . .
ue0: link state changed to UP

# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        ether ###
        inet 192.168.1.148 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=2b<PERFORMNUD,ACCEPT_RTADV,IFDISABLED,AUTO_LINKLOCAL>


Hopefully, I'll get back to testing fairly soon.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Mon Jul 27 2020 - 06:31:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:24 UTC