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

   ## Summary
   
   Patches included:
   - net: Add buffer pool to replace connection allocation
   - net: Optimize ipfwd and wrbuffer by buffer pool
   
   Our net socket connection allocations are powerful but redundant because 
they're implemented once in each protocol.  This is not good for further 
optimizing and extending to other allocations, so maybe we can add a common 
implementation for the usage.
   
   ## Impact
   
   1. We add a `struct net_bufpool_s` as pool descriptor, which may use a 
little bit more memory than previous implementation (~28Bytes).
   2. We share same functions between pools, so code size may shrink under some 
scenarios.
   
   ## Testing
   
   Mainly on SIM.
   - tcp/udp/icmp/devif_callback tested with different configs, both conn and 
wrbuffer pools.
   - Other pools share exactly the same logic, not tested very carefully.
   
   
   


-- 
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