anchao commented on code in PR #7916: URL: https://github.com/apache/nuttx/pull/7916#discussion_r1051623857
########## net/tcp/tcp_callback.c: ########## @@ -258,12 +258,15 @@ uint16_t tcp_datahandler(FAR struct net_driver_s *dev, iob_concat(conn->readahead, iob); } -#ifdef CONFIG_NET_TCP_RECV_CONTIG +#ifdef CONFIG_NET_TCP_RECV_PACK /* Merge an iob chain into a continuous space, thereby reducing iob * consumption. */ - conn->readahead = iob_contig(conn->readahead); + if (conn->readahead->io_flink != NULL) Review Comment: If it is not chain and does not need pack, reduce copy once -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org