zhhyu7 opened a new pull request, #17526:
URL: https://github.com/apache/nuttx/pull/17526
## Summary
Modify txavail to be sent directly in the current thread, and synchronously
modify the logic in the original process that needs to be adapted together.
## Impact
The transmission process of netdev_upperhalf, can reduce one thread context
switch and one net_lock/unlock operation, thus reduce computational consumption
during a single transmission process and improve real-time performance.
## Testing
sim:matter with ping and iperf
```
NuttShell (NSH) NuttX-12.11.0
MOTD: username=admin password=Administrator
nsh>
nsh> ifconfig eth0 10.0.1.2/24
nsh> 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=0.0 ms
56 bytes from 10.0.1.1: icmp_seq=1 time=0.0 ms
56 bytes from 10.0.1.1: icmp_seq=2 time=0.0 ms
3 packets transmitted, 3 received, 0% packet loss, time 3030 ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
nsh>
nsh> iperf -c 10.0.1.1
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- 12.54 sec 817315840 Bytes 521.41 Mbits/sec
12.54- 18.74 sec 404733952 Bytes 522.24 Mbits/sec
18.74- 30.84 sec 792920064 Bytes 524.24 Mbits/sec
0.00- 30.84 sec 2092908544 Bytes 542.91 Mbits/sec
iperf exit
nsh>
```
And Infineon board with can feature.
--
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]