net/tcp: rename NET_TCP_RECV_CONTIG to NET_TCP_RECV_PACK

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-12-18 23:10:54 +08:00 committed by Xiang Xiao
parent 4f239e145e
commit 6f15b32e34
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ config NET_TCP_WRBUFFER_DUMP
endif # NET_TCP_WRITE_BUFFERS
config NET_TCP_RECV_CONTIG
config NET_TCP_RECV_PACK
bool "Enable TCP/IP receive data in a continuous poll"
default y
---help---

View File

@ -258,12 +258,12 @@ 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);
conn->readahead = iob_pack(conn->readahead);
#endif
netdev_iob_clear(dev);