You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/12/18 09:17:01 UTC

[GitHub] [nuttx] anchao opened a new pull request, #7913: net/tcp: contig received data to reducing iob consumption

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

   ## Summary
   
   1. net/tcp: contig received data to reducing iob consumption
   
   Fragmentation of network data will intensify iob consumption, if
   the device receives a message storm of fragmented packets, the iob
   cache will not be effectively used, this is not allowed on iot devices
   since the resources of such devices are limited. Of course, this
   also takes some disadvantages: data needs to be copied.
   This option will brings some balance on resource-constrained devices,
   enable this config to reduce the consumption of iob, the received iob
   buffers will be merged into the contiguous iob chain.
   
   2. mm/iob/contig: enhance iob contig to support iob chain
   
   
   Signed-off-by: chao an <an...@xiaomi.com>
   
   ## Impact
   
   N/A
   
   ## Testing
   
   tcp server


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7913: net/tcp: contig received data to reducing iob consumption

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7913:
URL: https://github.com/apache/nuttx/pull/7913#discussion_r1051600150


##########
include/nuttx/mm/iob.h:
##########
@@ -562,12 +562,12 @@ FAR struct iob_s *iob_pack(FAR struct iob_s *iob);
  * Name: iob_contig
  *
  * Description:
- *   Ensure that there is 'len' bytes of contiguous space at the beginning
- *   of the I/O buffer chain starting at 'iob'.
+ *   Merge an iob chain into a continuous space, thereby reducing iob
+ *   consumption
  *
  ****************************************************************************/
 
-int iob_contig(FAR struct iob_s *iob, unsigned int len);
+FAR struct iob_s *iob_contig(FAR struct iob_s *iob);

Review Comment:
   why not use iob_pack instead



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 merged pull request #7913: net/tcp: contig received data to reducing iob consumption

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #7913:
URL: https://github.com/apache/nuttx/pull/7913


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org