2014-06-03 20:41:34 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-03 20:41:34 +02:00
|
|
|
#
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
menu "Common I/O Buffer Support"
|
2014-06-25 19:01:08 +02:00
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
config MM_IOB
|
2017-04-21 00:08:49 +02:00
|
|
|
bool "Enable generic I/O buffer support"
|
2014-06-03 20:41:34 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2017-04-21 00:08:49 +02:00
|
|
|
This setting will build the common I/O buffer (IOB) support
|
2014-06-03 20:41:34 +02:00
|
|
|
library.
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
if MM_IOB
|
2014-06-03 20:41:34 +02:00
|
|
|
|
|
|
|
config IOB_NBUFFERS
|
2017-04-21 00:08:49 +02:00
|
|
|
int "Number of pre-allocated I/O buffers"
|
2018-01-23 01:32:02 +01:00
|
|
|
default 24 if (NET_WRITE_BUFFERS && !NET_READAHEAD) || (!NET_WRITE_BUFFERS && NET_READAHEAD)
|
|
|
|
default 36 if NET_WRITE_BUFFERS && NET_READAHEAD
|
|
|
|
default 8 if !NET_WRITE_BUFFERS && !NET_READAHEAD
|
2014-06-03 20:41:34 +02:00
|
|
|
---help---
|
|
|
|
Each packet is represented by a series of small I/O buffers in a
|
|
|
|
chain. This setting determines the number of preallocated I/O
|
|
|
|
buffers available for packet data.
|
|
|
|
|
|
|
|
config IOB_BUFSIZE
|
2017-04-21 00:08:49 +02:00
|
|
|
int "Payload size of one I/O buffer"
|
2014-06-12 21:32:07 +02:00
|
|
|
default 196
|
2014-06-03 20:41:34 +02:00
|
|
|
---help---
|
|
|
|
Each packet is represented by a series of small I/O buffers in a
|
|
|
|
chain. This setting determines the data payload each preallocated
|
|
|
|
I/O buffer.
|
|
|
|
|
2014-06-06 17:35:31 +02:00
|
|
|
config IOB_NCHAINS
|
|
|
|
int "Number of pre-allocated I/O buffer chain heads"
|
2018-01-23 01:32:02 +01:00
|
|
|
default 0 if !NET_READAHEAD && !NET_UDP_READAHEAD
|
|
|
|
default 8 if NET_READAHEAD || NET_UDP_READAHEAD
|
2014-06-06 17:35:31 +02:00
|
|
|
---help---
|
2014-06-22 19:27:57 +02:00
|
|
|
These tiny nodes are used as "containers" to support queueing of
|
2014-06-06 17:35:31 +02:00
|
|
|
I/O buffer chains. This will limit the number of I/O transactions
|
2014-06-22 19:27:57 +02:00
|
|
|
that can be "in-flight" at any give time. The default value of
|
|
|
|
zero disables this features.
|
|
|
|
|
|
|
|
These generic I/O buffer chain containers are not currently used
|
|
|
|
by any logic in NuttX. That is because their other other specialized
|
|
|
|
I/O buffer chain containers that also carry a payload of usage
|
|
|
|
specific information.
|
2014-06-06 17:35:31 +02:00
|
|
|
|
2014-06-24 19:53:19 +02:00
|
|
|
config IOB_THROTTLE
|
|
|
|
int "I/O buffer throttle value"
|
2018-01-23 01:32:02 +01:00
|
|
|
default 0 if !NET_WRITE_BUFFERS || !NET_READAHEAD
|
|
|
|
default 8 if NET_WRITE_BUFFERS && NET_READAHEAD
|
2014-06-24 19:53:19 +02:00
|
|
|
---help---
|
|
|
|
TCP write buffering and read-ahead buffer use the same pool of free
|
|
|
|
I/O buffers. In order to prevent uncontrolled incoming TCP packets
|
|
|
|
from hogging all of the available, pre-allocated I/O buffers, a
|
|
|
|
throttling value is required. This throttle value assures that
|
|
|
|
I/O buffers will be denied to the read-ahead logic before TCP writes
|
|
|
|
are halted.
|
|
|
|
|
2018-09-08 19:21:18 +02:00
|
|
|
config IOB_NOTIFIER
|
|
|
|
bool "Support IOB notifications"
|
|
|
|
default n
|
2018-09-09 16:32:37 +02:00
|
|
|
select SIG_NOTIFIER
|
2018-09-08 19:21:18 +02:00
|
|
|
---help---
|
2018-09-09 17:21:39 +02:00
|
|
|
Enable building of IOB notifier logic that will send a signal to
|
2018-09-08 19:21:18 +02:00
|
|
|
a kernel thread when an IOB is available. This is is a general
|
|
|
|
purpose notifier, but was developed specifically to support poll()
|
|
|
|
logic where the poll must wait for an IOB to become available.
|
|
|
|
|
2014-06-24 19:53:19 +02:00
|
|
|
config IOB_DEBUG
|
2014-06-23 00:25:26 +02:00
|
|
|
bool "Force I/O buffer debug"
|
|
|
|
default n
|
2017-05-16 19:03:35 +02:00
|
|
|
depends on DEBUG_FEATURES && !SYSLOG_BUFFER
|
2014-06-23 00:25:26 +02:00
|
|
|
---help---
|
2017-04-21 00:08:49 +02:00
|
|
|
This option will force debug output from I/O buffer logic. This
|
|
|
|
is not normally something that would want to do but is convenient
|
|
|
|
if you are debugging the I/O buffer logic and do not want to get
|
|
|
|
overloaded with other un-related debug output.
|
2014-06-23 00:25:26 +02:00
|
|
|
|
2017-05-20 16:50:05 +02:00
|
|
|
NOTE that this selection is not available if IOBs are being used
|
2017-05-16 19:03:35 +02:00
|
|
|
to syslog buffering logic (CONFIG_SYSLOG_BUFFER=y)!
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
endif # MM_IOB
|
2017-04-21 00:08:49 +02:00
|
|
|
endmenu # Common I/O buffer support
|