From c5a7da5b7a420ecba103536e243ce7fd51203bc6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 24 Nov 2019 10:43:45 -0600 Subject: [PATCH] mm/iob/Kconfig: Make the default of IOB_NCHAINS same as IOB_NBUFFERS. It is reasonable default value since iob_qentry_s is much small than iob_s and could avoid the buffer can be allocated but the chain can't: 'tcp_datahandler: ERROR: Failed to queue the I/O buffer chain: -12' --- mm/iob/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/iob/Kconfig b/mm/iob/Kconfig index aad4c6c401..b7f72cd441 100644 --- a/mm/iob/Kconfig +++ b/mm/iob/Kconfig @@ -35,7 +35,7 @@ config IOB_BUFSIZE config IOB_NCHAINS int "Number of pre-allocated I/O buffer chain heads" default 0 if !NET_READAHEAD && !NET_UDP_READAHEAD - default 8 if NET_READAHEAD || NET_UDP_READAHEAD + default IOB_NBUFFERS if NET_READAHEAD || NET_UDP_READAHEAD ---help--- These tiny nodes are used as "containers" to support queueing of I/O buffer chains. This will limit the number of I/O transactions