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:
parent
4f239e145e
commit
6f15b32e34
@ -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---
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user