From 6f15b32e34f24e8d93be31f944a5b3a5d956faef Mon Sep 17 00:00:00 2001 From: chao an Date: Sun, 18 Dec 2022 23:10:54 +0800 Subject: [PATCH] net/tcp: rename NET_TCP_RECV_CONTIG to NET_TCP_RECV_PACK Signed-off-by: chao an --- net/tcp/Kconfig | 2 +- net/tcp/tcp_callback.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/tcp/Kconfig b/net/tcp/Kconfig index c0a42f37271..7d7f3bb22a9 100644 --- a/net/tcp/Kconfig +++ b/net/tcp/Kconfig @@ -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--- diff --git a/net/tcp/tcp_callback.c b/net/tcp/tcp_callback.c index 9640224ccd3..4546f8b11be 100644 --- a/net/tcp/tcp_callback.c +++ b/net/tcp/tcp_callback.c @@ -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);