From 637fd9c6bbd320ab000fe5ef3689d87e308dc2c9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 10 Feb 2015 06:25:55 -0600 Subject: IOB Configuration: Default number of IOB changes must be more than zero is UDP read-ahead is enabled. --- nuttx/net/iob/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuttx/net/iob/Kconfig b/nuttx/net/iob/Kconfig index 4d817205c..7b34185ab 100644 --- a/nuttx/net/iob/Kconfig +++ b/nuttx/net/iob/Kconfig @@ -34,8 +34,8 @@ config IOB_BUFSIZE config IOB_NCHAINS int "Number of pre-allocated I/O buffer chain heads" - default 0 if !NET_TCP_READAHEAD - default 8 if NET_TCP_READAHEAD + default 0 if !NET_TCP_READAHEAD && !NET_UDP_READAHEAD + default 8 if NET_TCP_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 -- cgit v1.2.3