wengzhe opened a new pull request, #9844:
URL: https://github.com/apache/nuttx/pull/9844
## Summary
Patches included:
- net: Rename `tcp_dataconcat` to `net_iob_concat`
- Allow other protocols like UDP to use concat logic. (No logic change)
- net/udp: Change `conn->readahead` to I/O buffer chain
- When using IOB queue to store `readahead` data, we use one IOB for each
UDP packet. Then if the packets are very small, like 10Bytes per packet, we'll
use ~1600 IOBs just for 16KB recv buffer size, which is wasteful and dangerous.
So change `conn->readahead` to a single IOB chain like TCP.
- Benefits:
- Using memory and IOBs more efficiently (small packets are common case
in UDP)
- Side effects:
- UDP recv buffer size may count the overhead
- A little bit drop in UDP recv performance (<1%, more seek & copy)
## Impact
UDP receive buffer
## Testing
Manually, on sim and actual product.
--
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]