zhhyu7 opened a new pull request, #17734:
URL: https://github.com/apache/nuttx/pull/17734

   ## Summary
   remove the use of net_lock in the usrsock module and decouple it from other 
network modules.
   
   ## Impact
   net::usrsock
   
   ## Testing
   sim:rpserver and sim:rpproxy with ping and iperf
   NuttX log:
   ```
   NuttShell (NSH) NuttX-12.12.0-RC0
   server> ifconfig eth0 10.0.1.2/24
   server> 
   server> cu
   
   NuttShell (NSH) NuttX-12.12.0-RC0
   proxy> 
   proxy> ping -c 3 10.0.1.1
   PING 10.0.1.1 56 bytes of data
   56 bytes from 10.0.1.1: icmp_seq=0 time=40.0 ms
   56 bytes from 10.0.1.1: icmp_seq=1 time=50.0 ms
   56 bytes from 10.0.1.1: icmp_seq=2 time=40.0 ms
   3 packets transmitted, 3 received, 0% packet loss, time 3030 ms
   rtt min/avg/max/mdev = 40.000/43.333/50.000/4.717 ms
   proxy> iperf -c 10.0.1.1 -B 10.0.1.2
        IP: 10.0.1.2
   
    mode=tcp-client sip=10.0.1.2:5001,dip=10.0.1.1:5001, interval=3, time=30
   
              Interval         Transfer         Bandwidth
   
     -0.00-   3.01 sec    1228800 Bytes    3.27 Mbits/sec
      3.01-   6.02 sec    1228800 Bytes    3.27 Mbits/sec
      6.02-   9.03 sec    1236992 Bytes    3.29 Mbits/sec
      9.03-  12.04 sec    1228800 Bytes    3.27 Mbits/sec
     12.04-  15.05 sec    1236992 Bytes    3.29 Mbits/sec
     15.05-  18.06 sec    1228800 Bytes    3.27 Mbits/sec
     18.06-  21.07 sec    1236992 Bytes    3.29 Mbits/sec
     21.07-  24.08 sec    1228800 Bytes    3.27 Mbits/sec
     24.08-  27.09 sec    1236992 Bytes    3.29 Mbits/sec
     27.09-  30.10 sec    1228800 Bytes    3.27 Mbits/sec
     -0.00-  30.10 sec   12320768 Bytes    3.27 Mbits/sec
   iperf exit
   proxy> iperf -s -B 10.0.1.2
        IP: 10.0.1.2
   
    mode=tcp-server sip=10.0.1.2:5001,dip=0.0.0.0:5001, interval=3, time=0
   accept: 10.0.1.1:58450
   
              Interval         Transfer         Bandwidth
   
      0.00-   3.01 sec    1228800 Bytes    3.27 Mbits/sec
      3.01-   6.02 sec    1228800 Bytes    3.27 Mbits/sec
      6.02-   9.03 sec    1236992 Bytes    3.29 Mbits/sec
   closed by the peer: 10.0.1.1:58450
   iperf exit
   proxy> 
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to