zhhyu7 opened a new pull request, #17754:
URL: https://github.com/apache/nuttx/pull/17754
## Summary
When the protocol stack sends data, it records the corresponding protocol
type in the netdev instance. When the network card driver collects packets from
the protocol stack, it can skip the xxx_poll interface of protocols that do not
need to send packets, thereby avoiding some unnecessary inspections.
## Impact
TX process of the network protocol stack.
testing the TX rates of TCP and UDP based on the Infineon board can increase
them by 13%.
The gain for the CAN protocol is even more significant.
## Testing
sim:matter with ping and iperf
```
NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
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> 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- 3.01 sec 192020480 Bytes 510.35 Mbits/sec
3.01- 6.02 sec 191430656 Bytes 508.79 Mbits/sec
6.02- 9.03 sec 191070208 Bytes 507.83 Mbits/sec
9.03- 12.04 sec 194117632 Bytes 515.93 Mbits/sec
12.04- 15.05 sec 192856064 Bytes 512.57 Mbits/sec
15.05- 18.06 sec 194756608 Bytes 517.63 Mbits/sec
18.06- 21.07 sec 192479232 Bytes 511.57 Mbits/sec
21.07- 24.08 sec 193544192 Bytes 514.40 Mbits/sec
24.08- 27.09 sec 190808064 Bytes 507.13 Mbits/sec
27.09- 30.10 sec 190267392 Bytes 505.69 Mbits/sec
0.00- 30.10 sec 1923350528 Bytes 511.19 Mbits/sec
iperf exit
nsh>
nsh> iperf -c 10.0.1.1 -u
IP: 10.0.1.2
mode=udp-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 254184960 Bytes 675.57 Mbits/sec
3.01- 6.02 sec 256456256 Bytes 681.61 Mbits/sec
6.02- 9.03 sec 257259968 Bytes 683.75 Mbits/sec
9.03- 12.04 sec 249383296 Bytes 662.81 Mbits/sec
12.04- 15.05 sec 251411712 Bytes 668.20 Mbits/sec
15.05- 18.06 sec 256364992 Bytes 681.37 Mbits/sec
18.06- 21.07 sec 255057856 Bytes 677.89 Mbits/sec
21.07- 24.08 sec 255659904 Bytes 679.49 Mbits/sec
24.08- 27.09 sec 252455360 Bytes 670.98 Mbits/sec
27.09- 30.10 sec 254043648 Bytes 675.20 Mbits/sec
0.00- 30.10 sec 2542277952 Bytes 675.69 Mbits/sec
iperf exit
nsh>
```
--
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]