diff --git a/net/tcp/Kconfig b/net/tcp/Kconfig index c0a42f3727..7d7f3bb22a 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 9640224ccd..4546f8b11b 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);